phytotelma/build.gradle.kts

89 lines
2 KiB
Plaintext
Raw Normal View History

2024-06-12 16:51:55 -04:00
import java.util.Date
2024-05-12 14:59:29 -04:00
plugins {
2024-05-26 18:35:39 -04:00
kotlin("jvm") version "2.0.0"
2024-05-12 14:59:29 -04:00
`java-gradle-plugin`
`maven-publish`
}
2024-06-02 17:13:58 -04:00
group = "dev.frogmc"
2024-09-04 15:41:45 -04:00
version = "aaa"
2024-05-12 14:59:29 -04:00
repositories {
2024-05-13 10:32:57 -04:00
maven {
2024-06-02 10:19:16 -04:00
name = "FrogMC Maven Releases"
2024-06-02 17:13:58 -04:00
url = uri("https://maven.frogmc.dev/releases")
2024-05-13 10:32:57 -04:00
}
maven {
2024-06-02 10:19:16 -04:00
name = "FrogMC Maven Snapshots"
2024-06-02 17:13:58 -04:00
url = uri("https://maven.frogmc.dev/snapshots")
2024-05-13 10:32:57 -04:00
}
mavenLocal()
2024-05-13 10:32:57 -04:00
2024-05-12 14:59:29 -04:00
mavenCentral()
}
dependencies {
2024-09-04 09:28:24 -04:00
implementation("dev.frogmc:thyroxine:0.0.1-alpha.16")
2024-05-27 11:10:30 -04:00
implementation("org.ow2.asm:asm:9.7")
implementation("org.ow2.asm:asm-commons:9.7")
implementation("org.ow2.asm:asm-tree:9.7")
2024-05-12 14:59:29 -04:00
implementation("com.google.code.gson:gson:2.10.1")
2024-05-13 10:32:57 -04:00
implementation("org.vineflower:vineflower:1.10.1")
2024-05-12 14:59:29 -04:00
testImplementation(kotlin("test"))
implementation("com.electronwill.night-config:toml:3.8.1")
2024-05-26 18:35:39 -04:00
implementation("com.google.jimfs:jimfs:1.3.0")
2024-05-12 14:59:29 -04:00
}
gradlePlugin {
plugins {
2024-05-27 11:10:30 -04:00
create("phytotelma") {
2024-06-02 17:13:58 -04:00
id = "dev.frogmc.phytotelma"
implementationClass = "dev.frogmc.phytotelma.PhytotelmaPlugin"
2024-05-12 14:59:29 -04:00
}
}
}
2024-05-27 06:10:43 -04:00
tasks.jar {
manifest {
2024-09-04 15:41:45 -04:00
attributes(
"Implementation-Version" to version,
2024-06-12 16:51:55 -04:00
"Implementation-Date" to Date(),
"Implementation-Name" to project.name
)
2024-05-27 06:10:43 -04:00
}
}
2024-05-12 14:59:29 -04:00
tasks.test {
useJUnitPlatform()
}
kotlin {
2024-05-13 07:21:37 -04:00
jvmToolchain(21)
2024-05-12 14:59:29 -04:00
}
publishing {
publications {
2024-05-13 05:27:31 -04:00
2024-05-13 10:32:57 -04:00
}
repositories {
maven {
2024-06-02 10:19:16 -04:00
name = "FrogMCSnapshotsMaven"
2024-06-02 17:13:58 -04:00
url = uri("https://maven.frogmc.dev/snapshots")
2024-05-13 10:32:57 -04:00
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
maven {
2024-06-02 10:19:16 -04:00
name = "FrogMCReleasesMaven"
2024-06-02 17:13:58 -04:00
url = uri("https://maven.frogmc.dev/releases")
2024-05-13 10:32:57 -04:00
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
2024-05-12 14:59:29 -04:00
}
}
}
}