-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #69 from OneLiteFeatherNET/develop
Release v1.1.0
- Loading branch information
Showing
27 changed files
with
321 additions
and
237 deletions.
There are no files selected for viewing
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,26 @@ | ||
name: Announce release on discord | ||
on: | ||
release: | ||
types: [ published ] | ||
jobs: | ||
send_announcement: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send custom message with args | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.ONELITEFATHERNET_GITHUB_WEBHOOK }} | ||
DISCORD_USERNAME: AntiRedstoneClock-Remastered Release | ||
DISCORD_AVATAR: https://raw.githubusercontent.com/OneLiteFeatherNET/assets/blob/main/onelitefeathernet.png | ||
DISCORD_THREAD_ID: '1239259280662597725' | ||
uses: OneLiteFeatherNET/action-discord@master | ||
with: | ||
args: | | ||
"<@&1250397109207830589>" | ||
"" | ||
"<a:fancyonelitefeather:1202007167818018867> **AntiRedstoneClock-Remastered ${{ github.event.release.tag_name }} has been released!**" | ||
"" | ||
"Click here to view changelog: https://github.com/OneLiteFeatherNET/AntiRedstoneClock-Remastered/releases/tag/${{ github.event.release.tag_name }}" | ||
"" | ||
"The download is available at:" | ||
"- Hangar: <https://hangar.papermc.io/OneLiteFeather/AntiRedstoneClock-Remastered/versions/${{ github.event.release.tag_name }}/>" | ||
"- Modrinth: <https://modrinth.com/plugin/AntiRedstoneClock-Remastered/version/${{ github.event.release.tag_name }}/>" |
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.
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,30 @@ | ||
name: Publish AntiRedstoneClock-Remasterd to platforms | ||
on: | ||
push: | ||
branches: | ||
- master | ||
- develop | ||
jobs: | ||
publish: | ||
name: 'Publish to EldoNexus, Modrinth and Hangar' | ||
# Run on all label events (won't be duplicated) or all push events or on PR syncs not from the same repo | ||
if: github.repository_owner == 'OneLiteFeatherNET' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
- name: Validate Gradle Wrapper | ||
uses: gradle/wrapper-validation-action@v3 | ||
- name: Setup Java | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: temurin | ||
cache: gradle | ||
java-version: 21 | ||
- name: Publish | ||
env: | ||
HANGAR_SECRET: ${{secrets.HANGAR_KEY}} | ||
MODRINTH_TOKEN: ${{ secrets.MODRINTH_KEY }} | ||
ELDO_USERNAME: "${{ secrets.ELDO_USERNAME }}" | ||
ELDO_PASSWORD: "${{ secrets.ELDO_PASSWORD }}" | ||
run: ./gradlew build modrinth publishAllPublicationsToHangar publish |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,4 +39,7 @@ bin/ | |
.vscode/ | ||
|
||
### Mac OS ### | ||
.DS_Store | ||
.DS_Store | ||
|
||
### Project | ||
run-*/ |
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 |
---|---|---|
@@ -1,18 +1,4 @@ | ||
plugins { | ||
id("java") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven("https://repo.codemc.io/repository/maven-public") | ||
maven("https://jitpack.io")// Plotsquared V4 Support | ||
maven("https://maven.enginehub.org/repo/") | ||
maven("https://papermc.io/repo/repository/maven-public/") | ||
} | ||
|
||
dependencies { | ||
compileOnly("com.github.IntellectualSites.PlotSquared:Core:4.453") | ||
compileOnly("com.github.IntellectualSites.PlotSquared:Bukkit:4.453") | ||
compileOnly(project(":internal-api")) | ||
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT") | ||
compileOnly(libs.psv4.core) | ||
compileOnly(libs.psv4.bukkit) | ||
} |
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,17 +1,5 @@ | ||
plugins { | ||
id("java") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven("https://maven.enginehub.org/repo/") | ||
maven("https://papermc.io/repo/repository/maven-public/") | ||
} | ||
|
||
dependencies { | ||
implementation(platform("com.intellectualsites.bom:bom-1.16.x:1.40")) | ||
compileOnly("com.plotsquared:PlotSquared-Core") | ||
compileOnly("com.plotsquared:PlotSquared-Bukkit") { isTransitive = false } | ||
compileOnly(project(":internal-api")) | ||
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT") | ||
implementation(platform(libs.psv6.platform)) | ||
compileOnly(libs.psv6.core) | ||
compileOnly(libs.psv6.bukkit) { isTransitive = false } | ||
} |
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,17 +1,5 @@ | ||
plugins { | ||
id("java") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven("https://maven.enginehub.org/repo/") | ||
maven("https://papermc.io/repo/repository/maven-public/") | ||
} | ||
|
||
dependencies { | ||
implementation(platform("com.intellectualsites.bom:bom-newest:1.40")) | ||
compileOnly("com.intellectualsites.plotsquared:plotsquared-core") | ||
compileOnly("com.intellectualsites.plotsquared:plotsquared-bukkit") { isTransitive = false } | ||
compileOnly(project(":internal-api")) | ||
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT") | ||
implementation(platform(libs.psv7.platform)) | ||
compileOnly(libs.psv7.core) | ||
compileOnly(libs.psv7.bukkit) { isTransitive = false } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,6 @@ | ||
plugins { | ||
id("java") | ||
} | ||
|
||
|
||
repositories { | ||
mavenCentral() | ||
maven("https://repo.codemc.org/repository/maven-public") | ||
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") | ||
maven("https://maven.enginehub.org/repo/") | ||
maven("https://papermc.io/repo/repository/maven-public/") | ||
|
||
} | ||
|
||
dependencies { | ||
compileOnly("com.sk89q.worldguard:worldguard-legacy:6.2") | ||
compileOnly(libs.wg6) | ||
compileOnly("com.sk89q.worldedit:worldedit-bukkit:6.0") { | ||
exclude("org.bukkit", "bukkit") | ||
} | ||
compileOnly(project(":internal-api")) | ||
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT") | ||
} |
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,15 +1,3 @@ | ||
plugins { | ||
id("java") | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
maven("https://maven.enginehub.org/repo/") | ||
maven("https://papermc.io/repo/repository/maven-public/") | ||
} | ||
|
||
dependencies { | ||
compileOnly("com.sk89q.worldguard:worldguard-bukkit:7.0.9") | ||
compileOnly(project(":internal-api")) | ||
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT") | ||
compileOnly(libs.wg7) | ||
} |
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,7 @@ | ||
plugins { | ||
`kotlin-dsl` | ||
} | ||
|
||
repositories { | ||
gradlePluginPortal() | ||
} |
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,43 @@ | ||
import org.gradle.api.Project | ||
import org.gradle.api.publish.PublishingExtension | ||
import org.gradle.api.publish.maven.MavenPublication | ||
import org.gradle.kotlin.dsl.configure | ||
import org.gradle.kotlin.dsl.get | ||
import org.gradle.kotlin.dsl.named | ||
import java.io.ByteArrayOutputStream | ||
|
||
fun Project.publishShadowJar() { | ||
configurePublication { | ||
artifact(tasks["shadowJar"]) | ||
artifact(tasks["sourcesJar"]) | ||
} | ||
} | ||
|
||
private fun Project.configurePublication(configurer: MavenPublication.() -> Unit) { | ||
extensions.configure<PublishingExtension> { | ||
publications.named<MavenPublication>("mavenJava") { | ||
apply(configurer) | ||
} | ||
} | ||
} | ||
|
||
fun Project.latestCommitHash(): String { | ||
return runGitCommand(listOf("rev-parse", "--short", "HEAD")) | ||
} | ||
|
||
fun Project.latestCommitMessage(): String { | ||
return runGitCommand(listOf("log", "-1", "--pretty=%B")) | ||
} | ||
|
||
fun Project.branchName(): String { | ||
return runGitCommand(listOf("rev-parse", "--abbrev-ref", "HEAD")) | ||
} | ||
|
||
fun Project.runGitCommand(args: List<String>): String { | ||
val byteOut = ByteArrayOutputStream() | ||
exec { | ||
commandLine = listOf("git") + args | ||
standardOutput = byteOut | ||
} | ||
return byteOut.toString(Charsets.UTF_8.name()).trim() | ||
} |
Empty file.
Oops, something went wrong.