summaryrefslogtreecommitdiff
path: root/build.gradle
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-11-03 02:40:23 -0500
committerKyle Gunger <kgunger12@gmail.com>2024-11-03 02:40:23 -0500
commit8a6be0ce81d935551ab2ebc9c4e7d41b88297957 (patch)
treeed194dd70239f4a022d8ee824876cdbcd5c950c7 /build.gradle
parentf6ecfac78b963a694a13891df06413df104b19fb (diff)
Update to currentHEADmain
Diffstat (limited to 'build.gradle')
-rw-r--r--build.gradle36
1 files changed, 9 insertions, 27 deletions
diff --git a/build.gradle b/build.gradle
index 7ba8032..933883c 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,5 +1,5 @@
plugins {
- id 'fabric-loom' version '1.4-SNAPSHOT'
+ id 'fabric-loom' version '1.8-SNAPSHOT'
id 'maven-publish'
}
@@ -16,9 +16,7 @@ repositories {
// Loom adds the essential maven repositories to download Minecraft and libraries from automatically.
// See https://docs.gradle.org/current/userguide/declaring_repositories.html
// for more information about repositories.
- maven {
- url "https://git.cshift.net/api/packages/CircleShift/maven"
- }
+ mavenLocal()
}
loom {
@@ -42,12 +40,8 @@ dependencies {
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
- // Uncomment the following line to enable the deprecated Fabric API modules.
- // These are included in the Fabric API production distribution and allow you to update your mod to the latest modules at a later more convenient time.
-
- // modImplementation "net.fabricmc.fabric-api:fabric-api-deprecated:${project.fabric_version}"
-
- modImplementation "net.cshift.api:TransitAPI:3.0.0-alpha-2"
+ // Transit API
+ modImplementation "net.cshift.mc:transit-api:3.0.1-rc-1"
}
processResources {
@@ -59,7 +53,7 @@ processResources {
}
tasks.withType(JavaCompile).configureEach {
- it.options.release = 17
+ it.options.release = 21
}
java {
@@ -68,8 +62,8 @@ java {
// If you remove this line, sources will not be generated.
withSourcesJar()
- sourceCompatibility = JavaVersion.VERSION_17
- targetCompatibility = JavaVersion.VERSION_17
+ sourceCompatibility = JavaVersion.VERSION_21
+ targetCompatibility = JavaVersion.VERSION_21
}
jar {
@@ -81,7 +75,8 @@ jar {
// configure the maven publication
publishing {
publications {
- mavenJava(MavenPublication) {
+ create("mavenJava", MavenPublication) {
+ artifactId = project.archives_base_name
from components.java
}
}
@@ -92,18 +87,5 @@ publishing {
// Notice: This block does NOT have the same function as the block in the top level.
// The repositories here will be used for publishing your artifact, not for
// retrieving dependencies.
- maven {
- name = "CShift"
- url = uri("https://git.cshift.net/api/packages/CircleShift/maven")
-
- credentials(HttpHeaderCredentials) {
- name = "Authorization"
- value = "token ${auth_token}"
- }
-
- authentication {
- header(HttpHeaderAuthentication)
- }
- }
}
}