Update gradle config

This commit is contained in:
Mikołaj Pich 2020-03-21 23:46:45 +01:00
parent 54aec7524a
commit 991de264b5
4 changed files with 63 additions and 91 deletions

View file

@ -1,5 +1,63 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.70' apply false
}
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'kotlin'
version = "0.1.0-SNAPSHOT"
group = "io.github.wulkanowy"
repositories {
mavenCentral()
}
}
subprojects {
apply plugin: 'jacoco'
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions {
jvmTarget = "1.6"
javaParameters = true
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "com.brsanthu:migbase64:2.2"
testImplementation "junit:junit:4.13"
}
jacocoTestReport {
reports {
xml.enabled true
}
}
test {
testLogging.showStandardStreams = false
}
group = "io.github.wulkanowy.signer"
if (project.plugins.hasPlugin('java')) {
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
}
}
}
dependencies {

View file

@ -1,48 +1,4 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.70'
id 'jacoco'
}
group 'io.github.wulkanowy'
version '0.1.0-SNAPSHOT'
sourceCompatibility = 1.6
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "com.brsanthu:migbase64:2.2"
testImplementation "junit:junit:4.13"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jacocoTestReport {
reports {
xml.enabled 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
id 'org.jetbrains.kotlin.jvm'
}

View file

@ -1,48 +1,4 @@
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.3.70'
id 'jacoco'
}
group 'io.github.wulkanowy'
version '0.1.0-SNAPSHOT'
sourceCompatibility = 1.6
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation "com.brsanthu:migbase64:2.2"
testImplementation "junit:junit:4.13"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.6"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.6"
}
jacocoTestReport {
reports {
xml.enabled 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
id 'org.jetbrains.kotlin.jvm'
}

View file

@ -1,2 +1,4 @@
rootProject.name = 'uonet-request-signer'
include 'hebe-jvm'
include 'jvm'