-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update gradle version and to use kotlin
Some other changes has be made too, as for some temporal fixes.
- Loading branch information
1 parent
9053369
commit 2cc7229
Showing
11 changed files
with
83 additions
and
61 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
plugins { | ||
id("com.github.johnrengelman.shadow") version "8.1.1" | ||
java | ||
`maven-publish` | ||
} | ||
|
||
group = "com.elguerrero.stellarminigameframework" | ||
version = "0.0.4" | ||
description = "A framework for create spigot/paper minigames." | ||
|
||
repositories { | ||
mavenCentral() | ||
maven { url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") } // V | ||
maven { url = uri("https://oss.sonatype.org/content/repositories/snapshots") } // | ||
maven { url = uri("https://oss.sonatype.org/content/repositories/central") } | ||
maven { url = uri("https://repo.papermc.io/repository/maven-public/") } | ||
maven { url = uri("https://jitpack.io") } | ||
maven { url = uri("https://repo.codemc.org/repository/maven-public/") } | ||
} | ||
|
||
dependencies { | ||
|
||
annotationProcessor("org.projectlombok:lombok:1.18.26") | ||
|
||
compileOnly("org.projectlombok:lombok:1.18.26") | ||
compileOnly("org.spigotmc:spigot-api:1.19.4-R0.1-SNAPSHOT") | ||
compileOnly("io.papermc.paper:paper-api:1.19.4-R0.1-SNAPSHOT") | ||
|
||
implementation("dev.dejvokep:boosted-yaml:1.3.1") | ||
implementation("dev.jorel:commandapi-shade:8.8.0") | ||
implementation("com.github.Elguerrero11:Stellar-Framework:1.9.1") | ||
} | ||
|
||
tasks { | ||
shadowJar.configure { | ||
mapOf( | ||
"dev.dejvokep.boostedyaml" to "boosted-yaml", | ||
"dev.jorel.commandapi" to "command-api", | ||
"com.elguerrero.stellarframework" to "stellar-framework", | ||
"org.jetbrains.annotations" to "jetbrains-annotations", | ||
).forEach { (packageName, newName) -> | ||
relocate(packageName, "libs.$newName") | ||
} | ||
|
||
archiveClassifier.set("") | ||
minimize() | ||
|
||
} | ||
build { | ||
dependsOn(shadowJar) | ||
} | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("mavenJava") { | ||
from(components["java"]) | ||
} | ||
} | ||
repositories { | ||
mavenLocal() | ||
} | ||
} | ||
|
||
java { | ||
toolchain { | ||
languageVersion.set(JavaLanguageVersion.of(17)) | ||
} | ||
} | ||
|
||
tasks.withType<JavaCompile> { | ||
options.encoding = "UTF-8" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0.2-all.zip | ||
networkTimeout=10000 | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = "StellarMinigameFramework" |
1 change: 1 addition & 0 deletions
1
src/main/java/com/elguerrero/stellarminigameframework/StellarArena.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 0 additions & 3 deletions
3
src/main/java/com/elguerrero/stellarminigameframework/StellarMinigameUtils.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.