Compare commits
2 Commits
50f66b93c3
...
4ed83b6376
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ed83b6376 | ||
|
|
9e9ada4e2b |
|
|
@ -1,7 +1,6 @@
|
|||
plugins {
|
||||
id("java")
|
||||
id("maven-publish")
|
||||
id("com.gorylenko.gradle-git-properties") version "2.3.1"
|
||||
}
|
||||
|
||||
group = "com.alttd"
|
||||
|
|
@ -12,14 +11,10 @@ apply<JavaLibraryPlugin>()
|
|||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion.set(JavaLanguageVersion.of(17))
|
||||
languageVersion.set(JavaLanguageVersion.of(21))
|
||||
}
|
||||
}
|
||||
|
||||
gitProperties {
|
||||
keys = listOf("git.commit.id", "git.commit.time")
|
||||
}
|
||||
|
||||
tasks {
|
||||
withType<JavaCompile> {
|
||||
options.encoding = Charsets.UTF_8.name()
|
||||
|
|
@ -43,7 +38,7 @@ tasks {
|
|||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("com.alttd:Galaxy-API:1.20.4-R0.1-SNAPSHOT") {
|
||||
compileOnly("com.alttd:Galaxy-API:1.21-R0.1-SNAPSHOT") {
|
||||
isChanging = true
|
||||
}
|
||||
}
|
||||
|
|
@ -26,20 +26,6 @@ public final class PlayerUtils extends JavaPlugin {
|
|||
registerCommands();
|
||||
registerEvents();
|
||||
reloadConfigs();
|
||||
printVersion();
|
||||
}
|
||||
|
||||
private void printVersion() {
|
||||
Properties gitProps = new Properties();
|
||||
try (InputStream inputStream = getClass().getClassLoader().getResourceAsStream("git.properties")) {
|
||||
gitProps.load(inputStream);
|
||||
} catch (IOException e) {
|
||||
logger.severe("Unable to load git.properties, unknown version");
|
||||
return;
|
||||
}
|
||||
|
||||
logger.info("Git commit ID: %s".formatted(gitProps.getProperty("git.commit.id")));
|
||||
logger.info("Git commit time: %s".formatted(gitProps.getProperty("git.commit.time")));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user