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 { 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" jspoon = "1.3.2"
okhttp3 = "3.12.6" okhttp3 = "3.12.6"
retrofit = "2.6.2" retrofit = "2.6.2"
@ -46,4 +50,19 @@ allprojects {
testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp3" testImplementation "com.squareup.okhttp3:mockwebserver:$okhttp3"
testImplementation "junit:junit:4.12" 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 { test {
testLogging.showStandardStreams = true 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' 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 { configurations {
ktlint ktlint
} }
@ -62,69 +53,54 @@ jacocoTestReport {
} }
} }
bintray { //bintray {
user = System.getenv('BINTRAY_USER') // user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY') // key = System.getenv('BINTRAY_KEY')
configurations = ['archives'] // configurations = ['archives']
pkg { // pkg {
repo = 'wulkanowy' // repo = 'wulkanowy'
name = 'api' // name = 'api'
userOrg = 'wulkanowy' // userOrg = 'wulkanowy'
licenses = ['Apache-2.0'] // licenses = ['Apache-2.0']
vcsUrl = GIT_URL // vcsUrl = GIT_URL
labels = ['aar', 'wulkanowy', 'api'] // labels = ['aar', 'wulkanowy', 'api']
publicDownloadNumbers = true // publicDownloadNumbers = true
publish = true // publish = true
//
// version {
// name = PUBLISH_VERSION
// vcsTag = PUBLISH_VERSION
// released = new Date()
// }
// }
//}
version { //install {
name = PUBLISH_VERSION // repositories.mavenInstaller {
vcsTag = PUBLISH_VERSION // pom {
released = new Date() // project {
} // packaging 'aar'
} // name 'Scraping API for VULCAN UONET+'
} // url SITE_URL
// licenses {
install { // license {
repositories.mavenInstaller { // name 'The Apache Software License, Version 2.0'
pom { // url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
project { // }
packaging 'aar' // }
name 'Scraping API for VULCAN UONET+' // developers {
url SITE_URL // developer {
licenses { // id 'mklkj'
license { // name 'Mikołaj Pich'
name 'The Apache Software License, Version 2.0' // email 'm.pich@outlook.com'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' // }
} // }
} // scm {
developers { // connection GIT_URL
developer { // developerConnection GIT_URL
id 'mklkj' // url SITE_URL
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
}

View file

@ -4,6 +4,8 @@ plugins {
id 'jacoco' id 'jacoco'
} }
group = "io.github.wulkanowy"
dependencies { dependencies {
implementation project(":mobile") implementation project(":mobile")
implementation project(":scrapper") implementation project(":scrapper")
@ -17,18 +19,3 @@ jacocoTestReport {
test { test {
testLogging.showStandardStreams = true 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 'mobile'
include 'scrapper' include 'scrapper'
include 'sdk' include 'sdk'