2019-07-26 14:39:02 +02:00
|
|
|
plugins {
|
2019-07-26 19:19:54 +02:00
|
|
|
id 'java-library'
|
2019-07-26 14:39:02 +02:00
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.3.41'
|
2019-07-26 19:19:54 +02:00
|
|
|
id 'maven-publish'
|
2019-07-26 14:39:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
group 'nl.voidcorp.depinj'
|
|
|
|
version '0.1.0'
|
|
|
|
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
|
|
implementation 'org.jetbrains.kotlin:kotlin-reflect'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
|
2019-07-26 19:19:54 +02:00
|
|
|
task sourcesJar(type: Jar) {
|
|
|
|
from sourceSets.main.allJava
|
|
|
|
archiveClassifier = 'sources'
|
|
|
|
}
|
|
|
|
|
|
|
|
task javadocJar(type: Jar) {
|
|
|
|
from javadoc
|
|
|
|
archiveClassifier = 'javadoc'
|
|
|
|
}
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
maven(MavenPublication) {
|
|
|
|
artifactId = 'depinj'
|
|
|
|
|
|
|
|
from components.java
|
|
|
|
artifact sourcesJar
|
|
|
|
artifact javadocJar
|
|
|
|
}
|
2019-07-26 14:39:02 +02:00
|
|
|
}
|
2019-07-26 19:19:54 +02:00
|
|
|
}
|
2019-07-26 14:39:02 +02:00
|
|
|
|
2019-07-26 19:19:54 +02:00
|
|
|
|
|
|
|
javadoc {
|
|
|
|
if (JavaVersion.current().isJava9Compatible()) {
|
|
|
|
options.addBooleanOption('html5', true)
|
|
|
|
}
|
2019-07-26 14:39:02 +02:00
|
|
|
}
|