Fix gradle script

This commit is contained in:
Mikołaj Pich 2019-12-07 22:36:46 +01:00
parent 5d41ea5ef5
commit c53e4ead91
No known key found for this signature in database
GPG key ID: F62B26E36D4C4BAA
2 changed files with 28 additions and 16 deletions

View file

@ -1,6 +1,6 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.50'
id 'org.jetbrains.kotlin.jvm'
id 'jacoco'
id 'com.jfrog.bintray' version '1.8.4'
id 'com.github.dcendents.android-maven' version '2.1'
@ -143,18 +143,3 @@ install {
}
}
}
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,7 +1,34 @@
plugins {
id 'jacoco'
id 'org.jetbrains.kotlin.jvm' version '1.3.60' apply false
}
allprojects {
apply plugin: 'java'
apply plugin: 'kotlin'
repositories {
jcenter()
}
test {
testLogging.showStandardStreams = false
}
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
}
}