Compare commits
2
Commits
master
..
442418f71e
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
442418f71e
|
||
|
|
8396914710
|
@@ -0,0 +1,41 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ dev ]
|
||||||
|
env:
|
||||||
|
JAVA_VERSION: '21'
|
||||||
|
GRADLE_VERSION: '8.14.5'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and Test
|
||||||
|
runs-on: hostinger
|
||||||
|
timeout-minutes: 30
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 1
|
||||||
|
|
||||||
|
- name: Set up JDK ${{ env.JAVA_VERSION }}
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
distribution: 'temurin'
|
||||||
|
java-version: ${{ env.JAVA_VERSION }}
|
||||||
|
|
||||||
|
- name: Setup Gradle
|
||||||
|
uses: gradle/actions/setup-gradle@v4
|
||||||
|
with:
|
||||||
|
gradle-version: ${{ env.GRADLE_VERSION }}
|
||||||
|
# Only the main branch writes to the cache; PRs/feature branches read-only
|
||||||
|
cache-read-only: false
|
||||||
|
|
||||||
|
- name: Validate Gradle wrapper
|
||||||
|
uses: gradle/wrapper-validation-action@v3
|
||||||
|
with:
|
||||||
|
distribution-type: 'bin'
|
||||||
|
version: ${{ env.GRADLE_VERSION }}
|
||||||
|
|
||||||
|
- name: Run Gradle build
|
||||||
|
run: ./gradlew build --no-daemon
|
||||||
@@ -2,38 +2,13 @@ name: CI
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
env:
|
|
||||||
JAVA_VERSION: '25'
|
|
||||||
GRADLE_VERSION: '8.14.5'
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build and Test
|
runs-on: woryzen
|
||||||
runs-on: hostinger
|
|
||||||
timeout-minutes: 30
|
|
||||||
container:
|
|
||||||
image: gitea.woggioni.net/woggioni/gitea-runner/debian:latest
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout sources
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@v4
|
||||||
with:
|
- name: Execute Gradle build
|
||||||
fetch-depth: 0
|
|
||||||
- name: Set up JDK
|
|
||||||
uses: actions/setup-java@v5
|
|
||||||
with:
|
|
||||||
distribution: 'oracle'
|
|
||||||
java-version: ${{ env.JAVA_VERSION }}
|
|
||||||
|
|
||||||
- name: Setup Gradle
|
|
||||||
uses: gradle/actions/setup-gradle@v6
|
|
||||||
with:
|
|
||||||
gradle-version: ${{ env.GRADLE_VERSION }}
|
|
||||||
# Only the main branch writes to the cache; PRs/feature branches read-only
|
|
||||||
cache-read-only: false
|
|
||||||
|
|
||||||
- name: Run Gradle build
|
|
||||||
run: ./gradlew build --no-daemon
|
|
||||||
|
|
||||||
- name: Publish artifacts
|
|
||||||
env:
|
env:
|
||||||
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
|
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
|
||||||
run: ./gradlew --no-daemon publish
|
run: ./gradlew build publish
|
||||||
|
|||||||
+2
-1
@@ -38,7 +38,8 @@ allprojects {
|
|||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain {
|
toolchain {
|
||||||
languageVersion = JavaLanguageVersion.of(25)
|
languageVersion = JavaLanguageVersion.of(21)
|
||||||
|
vendor = JvmVendorSpec.ORACLE
|
||||||
}
|
}
|
||||||
modularity.inferModulePath = true
|
modularity.inferModulePath = true
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,6 +3,6 @@ org.gradle.parallel=true
|
|||||||
org.gradle.caching=true
|
org.gradle.caching=true
|
||||||
|
|
||||||
gitea.maven.url = https://gitea.woggioni.net/api/packages/woggioni/maven
|
gitea.maven.url = https://gitea.woggioni.net/api/packages/woggioni/maven
|
||||||
jwo.version = 2006.06.20
|
jwo.version = 2026.06.16
|
||||||
lys.version = 2026.06.08
|
lys.version = 2026.06.08
|
||||||
guice.version = 5.0.1
|
guice.version = 5.0.1
|
||||||
|
|||||||
@@ -4,9 +4,27 @@ plugins {
|
|||||||
alias(catalog.plugins.envelope)
|
alias(catalog.plugins.envelope)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import org.gradle.api.attributes.LibraryElements
|
||||||
|
import static org.gradle.api.attributes.LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE
|
||||||
|
import static org.gradle.api.attributes.LibraryElements.JAR
|
||||||
import net.woggioni.gradle.envelope.EnvelopeJarTask
|
import net.woggioni.gradle.envelope.EnvelopeJarTask
|
||||||
import net.woggioni.gradle.envelope.EnvelopePlugin
|
import net.woggioni.gradle.envelope.EnvelopePlugin
|
||||||
|
|
||||||
|
|
||||||
|
configurations {
|
||||||
|
// testImplementation {
|
||||||
|
// attributes {
|
||||||
|
// attribute(LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements.class, JAR))
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// testRuntimeClasspath {
|
||||||
|
// attributes {
|
||||||
|
// attribute(LIBRARY_ELEMENTS_ATTRIBUTE, project.objects.named(LibraryElements.class, JAR))
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
java {
|
java {
|
||||||
modularity.inferModulePath = true
|
modularity.inferModulePath = true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user