47 lines
1.1 KiB
Groovy
47 lines
1.1 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.jetbrains.kotlin.jvm'
|
|
}
|
|
|
|
group 'io.bartek'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
sourceCompatibility = 1.8
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compile project(':api')
|
|
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
compile group: 'org.jetbrains.kotlin', name: 'kotlin-reflect', version: '1.3.61'
|
|
testCompile group: 'junit', name: 'junit', version: '4.12'
|
|
compile group: 'org.pf4j', name: 'pf4j', version: '3.2.0'
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "1.8"
|
|
}
|
|
|
|
jar {
|
|
zip64 true
|
|
manifest {
|
|
attributes 'Main-Class': 'io.smnp.SMNPKt'
|
|
}
|
|
|
|
// This line of code recursively collects and copies all of a project's files
|
|
// and adds them to the JAR itself. One can extend this task, to skip certain
|
|
// files or particular types at will
|
|
from configurations.compile.collect {
|
|
exclude "META-INF/*.SF"
|
|
exclude "META-INF/*.DSA"
|
|
exclude "META-INF/*.RSA"
|
|
it.isDirectory() ? it : zipTree(it)
|
|
}
|
|
from files(sourceSets.main.output.classesDirs)
|
|
from files(sourceSets.main.resources)
|
|
} |