Skip to content

Commit 26b28c8

Browse files
committed
Build updates
1 parent 8df67f5 commit 26b28c8

File tree

8 files changed

+13
-17
lines changed

8 files changed

+13
-17
lines changed

build-logic/src/main/kotlin/carbon.platform-conventions.gradle.kts

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ tasks {
6666
build {
6767
dependsOn(copyJar)
6868
}
69+
javadoc {
70+
enabled = false
71+
}
6972
}
7073

7174
val projectVersion = project.version as String
@@ -97,10 +100,3 @@ gremlin {
97100
defaultJarRelocatorDependencies = false
98101
defaultGremlinRuntimeDependency = false
99102
}
100-
101-
//val projectVersion = version as String
102-
//if (projectVersion.endsWith("-SNAPSHOT")) {
103-
// // Add git commit hash to version for platforms
104-
// val gitHash = latestGitHash() ?: error("Failed to retrieve git commit hash")
105-
// version = "$projectVersion+$gitHash"
106-
//}

build-logic/src/main/kotlin/extensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ val Project.releaseNotes: Provider<String>
3232
* Relocate a package into the `carbonchat.libs.` namespace.
3333
*/
3434
fun Task.relocateDependency(pkg: String) {
35-
ShadowGremlin.relocate(this, pkg, "carbonchat.libs.$pkg")
35+
ShadowGremlin.relocateWithPrefix(this, "carbonchat.libs", pkg)
3636
}
3737

3838
fun Task.standardRuntimeRelocations() {

common/src/main/java/net/draycia/carbon/common/util/CarbonDependencies.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import xyz.jpenilla.gremlin.runtime.DependencyCache;
2929
import xyz.jpenilla.gremlin.runtime.DependencyResolver;
3030
import xyz.jpenilla.gremlin.runtime.DependencySet;
31+
import xyz.jpenilla.gremlin.runtime.logging.Slf4jGremlinLogger;
3132

3233
@DefaultQualifier(NonNull.class)
3334
public final class CarbonDependencies {
@@ -41,7 +42,7 @@ public static Set<Path> resolve(final Path cacheDir) {
4142
final DependencyCache cache = new DependencyCache(cacheDir);
4243
final Logger logger = LoggerFactory.getLogger(CarbonDependencies.class.getSimpleName());
4344
final Set<Path> files;
44-
try (final DependencyResolver downloader = new DependencyResolver(logger)) {
45+
try (final DependencyResolver downloader = new DependencyResolver(new Slf4jGremlinLogger(logger))) {
4546
files = downloader.resolve(deps, cache).jarFiles();
4647
}
4748
cache.cleanup();

gradle/libs.versions.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ resource-factory-velocity-convention = { id = "xyz.jpenilla.resource-factory-vel
1010
resource-factory-fabric-convention = { id = "xyz.jpenilla.resource-factory-fabric-convention", version.ref = "resource-factory" }
1111

1212
[versions]
13-
indra = "3.1.3"
13+
indra = "3.2.0"
1414
cloud-build-logic = "0.0.17"
15-
shadow = "8.3.8"
16-
pluginYml = "0.5.3"
15+
shadow = "9.0.1"
1716
mod-publish-plugin = "0.8.4"
18-
gremlin = "0.0.8"
19-
runTask = "2.3.1"
17+
gremlin = "0.0.9"
18+
runTask = "3.0.0-beta.1"
2019
resource-factory = "1.3.0"
2120

2221
adventure = "4.18.0"

gradle/wrapper/gradle-wrapper.jar

1.65 KB
Binary file not shown.

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14.3-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.0.0-bin.zip
44
networkTimeout=10000
55
validateDistributionUrl=true
66
zipStoreBase=GRADLE_USER_HOME

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/sh
22

33
#
4-
# Copyright © 2015-2021 the original authors.
4+
# Copyright © 2015 the original authors.
55
#
66
# Licensed under the Apache License, Version 2.0 (the "License");
77
# you may not use this file except in compliance with the License.

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pluginManagement {
7777
}
7878

7979
plugins {
80-
id("org.gradle.toolchains.foojay-resolver-convention") version "0.10.0"
80+
id("org.gradle.toolchains.foojay-resolver-convention") version "1.0.0"
8181
id("quiet-fabric-loom") version "1.11-SNAPSHOT"
8282
}
8383

0 commit comments

Comments
 (0)