Fix jitpack sdk module build

This commit is contained in:
Mikołaj Pich 2019-11-14 18:34:40 +01:00
parent b9e56ce493
commit 35b748692e
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
5 changed files with 71 additions and 106 deletions

View file

@ -8,6 +8,10 @@ subprojects {
}
ext {
PUBLISH_VERSION = '0.12.0'
SITE_URL = 'https://github.com/wulkanowy/sdk'
GIT_URL = 'https://github.com/wulkanowy/sdk.git'
jspoon = "1.3.2"
okhttp3 = "3.12.6"
retrofit = "2.6.2"
@ -46,4 +50,19 @@ allprojects {
testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp3"
testImplementation "junit:junit:4.12"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
}

View file

@ -24,18 +24,3 @@ jacocoTestReport {
test {
testLogging.showStandardStreams = true
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}

View file

@ -6,15 +6,6 @@ plugins {
id 'com.github.dcendents.android-maven' version '2.1'
}
ext {
PUBLISH_VERSION = '0.12.0'
SITE_URL = 'https://github.com/wulkanowy/api'
GIT_URL = 'https://github.com/wulkanowy/api.git'
}
group 'io.github.wulkanowy'
version PUBLISH_VERSION
configurations {
ktlint
}
@ -62,69 +53,54 @@ jacocoTestReport {
}
}
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
//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()
// }
// }
//}
version {
name = PUBLISH_VERSION
vcsTag = PUBLISH_VERSION
released = new Date()
}
}
}
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
}
}
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
//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
// }
// }
// }
// }
//}

View file

@ -4,6 +4,8 @@ plugins {
id 'jacoco'
}
group = "io.github.wulkanowy"
dependencies {
implementation project(":mobile")
implementation project(":scrapper")
@ -17,18 +19,3 @@ jacocoTestReport {
test {
testLogging.showStandardStreams = true
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}

View file

@ -1,5 +1,3 @@
rootProject.name = 'sdk'
include 'mobile'
include 'scrapper'
include 'sdk'