Skip to content

Commit e211903

Browse files
update buildscript
1 parent 613bc37 commit e211903

30 files changed

+900
-856
lines changed

.editorconfig

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.json]
13+
indent_size = 2
14+
15+
[*.yml]
16+
indent_size = 2
17+
18+
[*.toml]
19+
indent_style = tab
20+
tab_width = 2
21+
22+
[*.properties]
23+
indent_size = 2
24+
25+
[*.gradle]
26+
indent_style = tab
27+
28+
[*.java]
29+
indent_style = tab
30+
ij_continuation_indent_size = 8
31+
ij_java_class_count_to_use_import_on_demand = 99
32+
ij_java_names_count_to_use_import_on_demand = 99
33+
ij_java_imports_layout = $*, |, java.**, |, javax.**, |, org.**, |, com.**, |, *

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022-2024 devOS: Sanity Edition, Team Nautical
3+
Copyright (c) 2022-2025 devOS: Sanity Edition, Team Nautical
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

build.gradle

Lines changed: 0 additions & 109 deletions
This file was deleted.

build.gradle.kts

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
// versions
2+
val minecraftVersion = "1.21.1"
3+
val minecraftDep = "=1.21.1"
4+
// https://parchmentmc.org/docs/getting-started
5+
val parchmentVersion = "2024.11.17"
6+
// https://fabricmc.net/develop
7+
val loaderVersion = "0.16.14"
8+
val fapiVersion = "0.115.6+1.21.1"
9+
10+
// dev env mods
11+
val flkVersion = "1.13.2+kotlin.2.1.20"
12+
13+
// buildscript
14+
plugins {
15+
id("fabric-loom") version "1.9.+"
16+
id("maven-publish")
17+
}
18+
19+
base.archivesName = "teabridge"
20+
group = "one.devos.nautical"
21+
22+
version = "1.3.0-mc$minecraftVersion"
23+
24+
repositories {
25+
maven("https://maven.parchmentmc.org")
26+
maven("https://api.modrinth.com/maven")
27+
28+
}
29+
30+
repositories {
31+
maven("https://maven.parchmentmc.org")
32+
maven("https://m2.dv8tion.net/releases/") {
33+
content { includeGroup("net.dv8tion") }
34+
}
35+
}
36+
37+
dependencies {
38+
// dev environment
39+
minecraft("com.mojang:minecraft:$minecraftVersion")
40+
@Suppress("UnstableApiUsage")
41+
mappings(loom.layered {
42+
officialMojangMappings { nameSyntheticMembers = false }
43+
parchment("org.parchmentmc.data:parchment-$minecraftVersion:$parchmentVersion@zip")
44+
})
45+
modImplementation("net.fabricmc:fabric-loader:$loaderVersion")
46+
47+
// dependencies
48+
modImplementation("net.fabricmc.fabric-api:fabric-api:$fapiVersion")
49+
include(implementation("net.dv8tion:JDA:5.4.0") {
50+
exclude(module = "opus-java")
51+
})
52+
include("net.sf.trove4j:core:3.1.0")
53+
include("org.apache.commons:commons-collections4:4.4")
54+
include("com.fasterxml.jackson.core:jackson-core:2.17.0")
55+
include("com.fasterxml.jackson.core:jackson-databind:2.17.0")
56+
include("com.fasterxml.jackson.core:jackson-annotations:2.17.0")
57+
include("com.squareup.okhttp3:okhttp:4.12.0")
58+
include("com.squareup.okio:okio-jvm:3.4.0")
59+
include("com.neovisionaries:nv-websocket-client:2.14")
60+
61+
// for "squareup" libs (they all use kotlin)
62+
modLocalRuntime("net.fabricmc:fabric-language-kotlin:$flkVersion")
63+
}
64+
65+
tasks.withType(ProcessResources::class) {
66+
inputs.properties(
67+
"version" to version,
68+
"loader_version" to loaderVersion,
69+
"fapi_version" to fapiVersion,
70+
"minecraft_dependency" to minecraftDep
71+
)
72+
73+
filesMatching("fabric.mod.json") {
74+
expand(inputs.properties)
75+
}
76+
}
77+
78+
java {
79+
withSourcesJar()
80+
}
81+
82+
publishing {
83+
publications {
84+
register<MavenPublication>("mavenJava") {
85+
from(components["java"])
86+
}
87+
}
88+
89+
repositories {
90+
maven("https://mvn.devos.one/snapshots") {
91+
name = "devOsSnapshots"
92+
credentials(PasswordCredentials::class)
93+
}
94+
maven("https://mvn.devos.one/releases") {
95+
name = "devOsReleases"
96+
credentials(PasswordCredentials::class)
97+
}
98+
}
99+
}

gradle.properties

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
1-
# Done to increase the memory available to gradle.
2-
org.gradle.jvmargs=-Xmx4G
3-
4-
# Fabric Properties
5-
# check these on https://fabricmc.net/develop
6-
minecraft_version=1.21
7-
loader_version=0.15.11
8-
fabric_version=0.100.1+1.21
9-
10-
# Mod Properties
11-
mod_version = 1.3.0
12-
maven_group = one.devos.nautical
13-
archives_base_name = teabridge
1+
org.gradle.jvmargs=-Xmx2G
2+
org.gradle.parallel=true
3+
org.gradle.caching=true
4+
org.gradle.configuration-cache=true

gradle/wrapper/gradle-wrapper.jar

130 Bytes
Binary file not shown.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip
44
networkTimeout=10000
5+
validateDistributionUrl=true
56
zipStoreBase=GRADLE_USER_HOME
67
zipStorePath=wrapper/dists

gradlew

100644100755
Lines changed: 20 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)