mirror of
https://github.com/CivMC/Civ.git
synced 2026-07-18 00:20:44 +00:00
Fix CivGradle
This commit is contained in:
24
plugins/finale-paper/.github/workflows/build.yml
vendored
Normal file
24
plugins/finale-paper/.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
name: Build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '*'
|
||||
pull_request:
|
||||
types: [opened, synchronize, reopened]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
|
||||
- uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
arguments: build
|
||||
25
plugins/finale-paper/.github/workflows/publish.yml
vendored
Normal file
25
plugins/finale-paper/.github/workflows/publish.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Publish
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*.*.*'
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-java@v3
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: temurin
|
||||
|
||||
- uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
arguments: publish
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
CIVMC_NEXUS_USER: ${{ secrets.CIVMC_NEXUS_USER }}
|
||||
CIVMC_NEXUS_PASSWORD: ${{ secrets.CIVMC_NEXUS_PASSWORD }}
|
||||
@@ -1,7 +0,0 @@
|
||||
name: Build
|
||||
on:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
call_build:
|
||||
uses: CivMC/.github/.github/workflows/gradle_build.yml@master
|
||||
@@ -1,8 +0,0 @@
|
||||
name: Publish
|
||||
on:
|
||||
release:
|
||||
types: [created]
|
||||
|
||||
jobs:
|
||||
call_publish:
|
||||
uses: CivMC/.github/.github/workflows/gradle_publish.yml@master
|
||||
@@ -4,12 +4,6 @@ plugins {
|
||||
id("net.civmc.civgradle") version "2.+" apply false
|
||||
}
|
||||
|
||||
// Temporary hack:
|
||||
// Remove the root build directory
|
||||
gradle.buildFinished {
|
||||
project.buildDir.deleteRecursively()
|
||||
}
|
||||
|
||||
subprojects {
|
||||
apply(plugin = "java-library")
|
||||
apply(plugin = "maven-publish")
|
||||
@@ -24,15 +18,4 @@ subprojects {
|
||||
maven("https://repo.civmc.net/repository/maven-public")
|
||||
maven("https://repo.dmulloy2.net/content/groups/public/")
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
name = "GitHubPackages"
|
||||
url = uri("https://maven.pkg.github.com/CivMC/Finale")
|
||||
credentials {
|
||||
username = System.getenv("GITHUB_ACTOR")
|
||||
password = System.getenv("GITHUB_TOKEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,14 +3,8 @@ rootProject.name = "finale"
|
||||
pluginManagement {
|
||||
repositories {
|
||||
gradlePluginPortal()
|
||||
maven("https://repo.civmc.net/repository/maven-public/")
|
||||
maven("https://papermc.io/repo/repository/maven-public/")
|
||||
maven {
|
||||
url = uri("https://maven.pkg.github.com/CivMC/CivGradle")
|
||||
credentials {
|
||||
username = System.getenv("GITHUB_ACTOR")
|
||||
password = System.getenv("GITHUB_TOKEN")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user