Update publish config

This commit is contained in:
Mikołaj Pich 2019-12-22 17:46:54 +01:00
parent ab012f1092
commit 4ad8da78b0
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
6 changed files with 108 additions and 58 deletions

View file

@ -43,7 +43,7 @@ jobs:
- store_artifacts:
path: ./build/reports/tests/test
- store_artifacts:
path: ./build/libs/sdk-0.12.0.jar
path: ./build/libs/sdk-0.14.0.jar
deploy:
<<: *container_config
steps:

View file

@ -2,6 +2,7 @@
[![Codecov branch](https://img.shields.io/codecov/c/github/wulkanowy/sdk/master.svg?style=flat-square)](https://codecov.io/gh/wulkanowy/sdk)
[![CircleCI branch](https://img.shields.io/circleci/project/github/wulkanowy/sdk/master.svg?style=flat-square)](https://circleci.com/gh/wulkanowy/sdk)
[![Bintray](https://img.shields.io/bintray/v/wulkanowy/wulkanowy/sdk.svg?style=flat-square)](https://bintray.com/wulkanowy/wulkanowy/sdk)
[![JitPack](https://img.shields.io/jitpack/v/wulkanowy/sdk.svg?style=flat-square)](https://jitpack.io/#wulkanowy/sdk)
[![License](https://img.shields.io/github/license/wulkanowy/sdk.svg?style=flat-square)](https://github.com/wulkanowy/sdk)
[![Discord](https://img.shields.io/discord/390889354199040011.svg?style=flat-square)](https://discord.gg/vccAQBr)
@ -14,6 +15,10 @@ Check it out [full public api](https://github.com/wulkanowy/sdk/blob/master/sdk/
and [test examples](https://github.com/wulkanowy/sdk/blob/master/sdk/src/test/kotlin/io/github/wulkanowy/sdk/SdkRemoteTest.kt).
## Documentation
Check [wiki page](https://github.com/wulkanowy/sdk/wiki).
## Download
```gradle
@ -24,6 +29,6 @@ allprojects {
}
}
dependencies {
implementation 'io.github.wulkanowy:sdk:master-SNAPSHOT'
implementation 'io.github.wulkanowy:sdk:0.13.0'
}
```

View file

@ -2,11 +2,8 @@ plugins {
id 'jacoco'
id 'org.jetbrains.kotlin.jvm' version '1.3.61' apply false
id "org.jlleitschuh.gradle.ktlint" version "9.1.1"
}
subprojects {
version = "0.13.0-SNAPSHOT"
group = "io.github.wulkanowy"
id 'maven'
id 'com.jfrog.bintray' version '1.8.4'
}
ext {
@ -26,6 +23,38 @@ allprojects {
apply plugin: 'kotlin'
apply plugin: "org.jlleitschuh.gradle.ktlint"
version = PUBLISH_VERSION
group = "io.github.wulkanowy.sdk"
install {
repositories.mavenInstaller {
pom {
project {
packaging 'aar'
name 'SDK for VULCAN UONET+'
url SITE_URL
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'mklkj'
name 'Mikołaj Pich'
email 'm.pich@outlook.com'
}
}
scm {
connection GIT_URL
developerConnection GIT_URL
url SITE_URL
}
}
}
}
}
ktlint {
additionalEditorconfigFile = file(".editorconfig")
disabledRules = [

View file

@ -2,6 +2,7 @@ plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm'
id 'maven'
id 'com.jfrog.bintray'
id 'jacoco'
}
@ -17,3 +18,25 @@ dependencies {
implementation "com.squareup.retrofit2:retrofit:$retrofit"
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit"
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
configurations = ['archives']
pkg {
repo = 'wulkanowy'
name = 'mobile'
userOrg = 'wulkanowy'
licenses = ['Apache-2.0']
vcsUrl = GIT_URL
labels = ['wulkanowy', 'sdk']
publicDownloadNumbers = true
publish = true
version {
name = PUBLISH_VERSION
vcsTag = PUBLISH_VERSION
released = new Date()
}
}
}

View file

@ -2,8 +2,8 @@ plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm'
id 'maven'
id 'com.jfrog.bintray'
id 'jacoco'
// id 'com.jfrog.bintray' version '1.8.4'
}
dependencies {
@ -23,54 +23,24 @@ dependencies {
testImplementation "org.slf4j:slf4j-simple:$slf4j"
}
//bintray {
// user = System.getenv('BINTRAY_USER')
// key = System.getenv('BINTRAY_KEY')
// configurations = ['archives']
// pkg {
// repo = 'wulkanowy'
// name = 'api'
// userOrg = 'wulkanowy'
// licenses = ['Apache-2.0']
// vcsUrl = GIT_URL
// labels = ['aar', 'wulkanowy', 'api']
// publicDownloadNumbers = true
// publish = true
//
// version {
// name = PUBLISH_VERSION
// vcsTag = PUBLISH_VERSION
// released = new Date()
// }
// }
//}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
configurations = ['archives']
pkg {
repo = 'wulkanowy'
name = 'scrapper'
userOrg = 'wulkanowy'
licenses = ['Apache-2.0']
vcsUrl = GIT_URL
labels = ['wulkanowy', 'sdk']
publicDownloadNumbers = true
publish = true
//install {
// repositories.mavenInstaller {
// pom {
// project {
// packaging 'aar'
// name 'Scraping API for VULCAN UONET+'
// url SITE_URL
// licenses {
// license {
// name 'The Apache Software License, Version 2.0'
// url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
// }
// }
// developers {
// developer {
// id 'mklkj'
// name 'Mikołaj Pich'
// email 'm.pich@outlook.com'
// }
// }
// scm {
// connection GIT_URL
// developerConnection GIT_URL
// url SITE_URL
// }
// }
// }
// }
//}
version {
name = PUBLISH_VERSION
vcsTag = PUBLISH_VERSION
released = new Date()
}
}
}

View file

@ -2,6 +2,7 @@ plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm'
id 'maven'
id 'com.jfrog.bintray'
id 'jacoco'
}
@ -9,3 +10,25 @@ dependencies {
implementation project(":mobile")
implementation project(":scrapper")
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
configurations = ['archives']
pkg {
repo = 'wulkanowy'
name = 'sdk'
userOrg = 'wulkanowy'
licenses = ['Apache-2.0']
vcsUrl = GIT_URL
labels = ['wulkanowy', 'sdk']
publicDownloadNumbers = true
publish = true
version {
name = PUBLISH_VERSION
vcsTag = PUBLISH_VERSION
released = new Date()
}
}
}