FrogLoader/build.gradle.kts

87 lines
2 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`
2024-05-11 14:41:25 -04:00
}
2024-06-02 17:21:45 -04:00
group = "dev.frogmc"
2024-05-13 14:38:57 -04:00
version = "0.0.1-SNAPSHOT"
2024-05-11 14:41:25 -04:00
repositories {
2024-05-13 14:38:57 -04:00
maven {
2024-06-02 10:42:13 -04:00
name = "FrogMC Maven/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 {
2024-06-02 10:42:13 -04:00
name = "FrogMC Maven/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
maven("https://maven.fabricmc.net/")
maven("https://repo.spongepowered.org/maven")
mavenCentral()
}
dependencies {
2024-06-02 10:42:13 -04:00
implementation(libs.thyroxine){
isTransitive = false
}
2024-05-20 09:30:58 -04:00
compileOnly("org.apache.logging.log4j:log4j-slf4j2-impl:3.0.0-beta2")
compileOnly("org.apache.logging.log4j:log4j-api:3.0.0-beta2")
compileOnly("org.apache.logging.log4j:log4j-core:3.0.0-beta2")
api(libs.mixin)
api(libs.mixinextras)
implementation(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")
}
}
}
}