phytotelma/build.gradle.kts
moehreag 44d507107b
All checks were successful
Publish to snapshot maven / build (push) Successful in 24s
fix a few bugs, make use of gradle extensions, add froglib convenience method
2024-06-09 17:00:47 +02:00

80 lines
1.7 KiB
Plaintext

plugins {
kotlin("jvm") version "2.0.0"
`java-gradle-plugin`
`maven-publish`
}
group = "dev.frogmc"
version = "0.0.0-SNAPSHOT"
repositories {
maven {
name = "FrogMC Maven Releases"
url = uri("https://maven.frogmc.dev/releases")
}
maven {
name = "FrogMC Maven Snapshots"
url = uri("https://maven.frogmc.dev/snapshots")
}
mavenCentral()
}
dependencies {
implementation("dev.frogmc:thyroxine:1.0.0-SNAPSHOT")
implementation("org.ow2.asm:asm:9.7")
implementation("com.google.code.gson:gson:2.10.1")
implementation("org.vineflower:vineflower:1.10.1")
testImplementation(kotlin("test"))
implementation("com.electronwill.night-config:toml:3.7.2")
implementation("com.google.jimfs:jimfs:1.3.0")
}
gradlePlugin {
plugins {
create("phytotelma") {
id = "dev.frogmc.phytotelma"
implementationClass = "dev.frogmc.phytotelma.PhytotelmaPlugin"
}
}
}
tasks.jar {
manifest {
attributes["Implementation-Version"] = version
}
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(21)
}
publishing {
publications {
}
repositories {
maven {
name = "FrogMCSnapshotsMaven"
url = uri("https://maven.frogmc.dev/snapshots")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
maven {
name = "FrogMCReleasesMaven"
url = uri("https://maven.frogmc.dev/releases")
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
}