javacord/build.gradle

55 lines
1.2 KiB
Groovy

plugins {
id 'java'
id 'maven-publish'
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'
}
group = 'xyz.etztech'
version = '0.3.0'
sourceCompatibility = '8'
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")
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.1'
}
publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
repositories {
maven {
name = "birbmc"
url = "https://mvn.birbmc.com/releases"
credentials {
username = "admin"
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}