mirror of
https://github.com/Anime-Game-Servers/AnimeGamesLua.git
synced 2024-11-23 04:19:41 +00:00
63 lines
1.4 KiB
Plaintext
63 lines
1.4 KiB
Plaintext
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
plugins {
|
|
id("java")
|
|
id("maven-publish")
|
|
kotlin("jvm") version "1.9.10"
|
|
}
|
|
|
|
group = "org.anime_game_servers"
|
|
version = "0.1"
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
testImplementation(platform("org.junit:junit-bom:5.9.1"))
|
|
testImplementation("org.junit.jupiter:junit-jupiter")
|
|
implementation(kotlin("stdlib-jdk8"))
|
|
}
|
|
|
|
tasks.test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
allprojects {
|
|
apply(plugin ="maven-publish")
|
|
|
|
repositories {
|
|
mavenLocal()
|
|
mavenCentral()
|
|
maven {
|
|
name = "ags-mvn-Releases"
|
|
url = uri("https://mvn.animegameservers.org/releases")
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
name = "agsmvnrelease"
|
|
url = uri("https://mvn.animegameservers.org/releases")
|
|
credentials(PasswordCredentials::class)
|
|
authentication {
|
|
create<BasicAuthentication>("basic")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
val compileKotlin: KotlinCompile by tasks
|
|
compileKotlin.kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
val compileTestKotlin: KotlinCompile by tasks
|
|
compileTestKotlin.kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
} |