FrogLoader/build.gradle.kts

89 lines
2.1 KiB
Plaintext
Raw Normal View History

2024-05-11 14:41:25 -04:00
plugins {
2024-05-13 15:16:53 -04:00
java
`java-library`
2024-05-25 12:50:54 -04:00
id("io.freefair.lombok") version "8.+"
2024-05-13 15:16:53 -04:00
`maven-publish`
id("dev.frogmc.meta-update") version "0.0.1-alpha.7"
2024-05-11 14:41:25 -04:00
}
2024-06-02 17:21:45 -04:00
group = "dev.frogmc"
version = "0.0.1-alpha.27"
2024-05-11 14:41:25 -04:00
repositories {
2024-05-13 14:38:57 -04:00
maven {
name = "FrogMC Snapshots"
2024-06-02 17:21:45 -04:00
url = uri("https://maven.frogmc.dev/snapshots")
2024-05-13 14:38:57 -04:00
}
maven {
name = "FrogMC Releases"
2024-06-02 17:21:45 -04:00
url = uri("https://maven.frogmc.dev/releases")
2024-05-13 14:38:57 -04:00
}
2024-05-11 14:41:25 -04:00
mavenCentral()
}
dependencies {
2024-06-17 07:25:46 -04:00
implementation(libs.thyroxine)
compileOnly("org.apache.logging.log4j:log4j-slf4j2-impl:2.22.1")
compileOnly("org.apache.logging.log4j:log4j-api:2.22.1")
compileOnly("org.apache.logging.log4j:log4j-core:2.22.1")
compileOnly("com.google.code.gson:gson:2.0")
compileOnly("com.google.guava:guava:21.0") // Lowest possible version for our code
api(libs.mixin) {
exclude(group = "com.google.code.gson")
exclude(group = "com.google.guava")
}
api(libs.mixinextras)
api(libs.nightconfig)
api(libs.annotations)
2024-05-11 14:41:25 -04:00
}
2024-05-17 15:08:55 -04:00
java {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
withJavadocJar()
withSourcesJar()
}
tasks.javadoc {
include("**/api/**")
2024-05-13 15:16:53 -04:00
}
2024-05-25 12:50:54 -04:00
tasks.processResources {
inputs.property("version", version)
filesMatching("frog.mod.toml") {
expand("version" to version)
}
}
2024-05-13 15:16:53 -04:00
publishing {
publications {
create<MavenPublication>("mavenJava") {
2024-06-08 04:46:55 -04:00
artifactId = "frogloader"
2024-05-13 15:16:53 -04:00
from(components["java"])
}
}
repositories {
maven {
2024-06-02 10:42:13 -04:00
name = "FrogMCSnapshotsMaven"
2024-06-02 17:21:45 -04:00
url = uri("https://maven.frogmc.dev/snapshots")
2024-05-13 15:16:53 -04:00
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
maven {
2024-06-02 10:42:13 -04:00
name = "FrogMCReleasesMaven"
2024-06-02 17:21:45 -04:00
url = uri("https://maven.frogmc.dev/releases")
2024-05-13 15:16:53 -04:00
credentials(PasswordCredentials::class)
authentication {
create<BasicAuthentication>("basic")
}
}
}
}