2021-03-16 01:56:59 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'maven-publish'
|
2021-06-20 19:56:31 +00:00
|
|
|
id 'org.jetbrains.kotlin.jvm' version '1.5.20-RC'
|
|
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version '1.5.10'
|
|
|
|
id 'tech.formatter-kt.formatter' version '0.7.7'
|
2021-03-16 01:56:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
group = 'xyz.etztech'
|
2021-06-20 19:56:31 +00:00
|
|
|
version = '0.3.0'
|
2021-03-16 01:56:59 +00:00
|
|
|
sourceCompatibility = '8'
|
|
|
|
|
2021-06-11 02:50:39 +00:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.2")
|
|
|
|
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.6.2")
|
2021-06-20 19:56:31 +00:00
|
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
|
|
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1'
|
2021-06-11 02:50:39 +00:00
|
|
|
}
|
|
|
|
|
2021-03-16 01:56:59 +00:00
|
|
|
publishing {
|
|
|
|
publications {
|
|
|
|
maven(MavenPublication) {
|
|
|
|
from components.java
|
|
|
|
}
|
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
maven {
|
2021-06-11 02:50:39 +00:00
|
|
|
name = "birbmc"
|
|
|
|
url = "https://mvn.birbmc.com/releases"
|
2021-03-16 01:56:59 +00:00
|
|
|
credentials {
|
2021-06-11 02:50:39 +00:00
|
|
|
username = "admin"
|
2021-03-16 01:56:59 +00:00
|
|
|
password = System.getenv("MAVEN_PASSWORD")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-06-20 19:56:31 +00:00
|
|
|
compileKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
compileTestKotlin {
|
|
|
|
kotlinOptions {
|
|
|
|
jvmTarget = "1.8"
|
|
|
|
}
|
|
|
|
}
|