Converted Mobibot class to Kotlin.
This commit is contained in:
parent
a44b0c1f49
commit
69441f7006
30 changed files with 956 additions and 1134 deletions
13
build.gradle
13
build.gradle
|
@ -9,6 +9,7 @@ plugins {
|
|||
id 'java'
|
||||
id 'net.thauvin.erik.gradle.semver' version '1.0.4'
|
||||
id 'org.jetbrains.kotlin.jvm' version '1.4.20'
|
||||
id 'org.jetbrains.kotlin.kapt' version '1.4.20'
|
||||
id 'org.sonarqube' version '3.0'
|
||||
id 'pmd'
|
||||
}
|
||||
|
@ -33,8 +34,8 @@ repositories {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
annotationProcessor semverProcessor
|
||||
compileOnly semverProcessor
|
||||
kapt(semverProcessor)
|
||||
implementation(semverProcessor)
|
||||
|
||||
implementation 'pircbot:pircbot:1.5.0'
|
||||
compileOnly 'pircbot:pircbot:1.5.0:sources'
|
||||
|
@ -77,14 +78,18 @@ java {
|
|||
targetCompatibility = JavaVersion.VERSION_11
|
||||
}
|
||||
|
||||
kapt {
|
||||
arguments {
|
||||
arg("semver.project.dir", projectDir)
|
||||
}
|
||||
}
|
||||
|
||||
application {
|
||||
mainClassName = packageName + '.Mobibot'
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile) {
|
||||
options.encoding = 'UTF-8'
|
||||
options.annotationProcessorGeneratedSourcesDirectory = file("${projectDir}/src/generated/java")
|
||||
options.compilerArgs += ["-Asemver.project.dir=$projectDir"]
|
||||
}
|
||||
|
||||
compileJava {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue