Compare commits

...

5 Commits

Author SHA1 Message Date
79ed7124cf fixed Gitea pipeline
All checks were successful
CI / build (push) Successful in 2m5s
2025-03-11 22:32:15 +08:00
fcbf6a7273 updated library versions
Some checks are pending
CI / build (push) Waiting to run
2025-03-11 22:29:59 +08:00
1b5add5d4c migrated to gitea
All checks were successful
CI / build (push) Successful in 1m42s
2024-04-05 07:09:05 +08:00
0d5629f298 removed double publication
Some checks failed
CI / build (push) Failing after 18s
2024-03-24 18:41:28 +08:00
76c1dec894 added gitea action
Some checks failed
CI / build (push) Failing after 2m50s
2024-03-24 18:36:28 +08:00
6 changed files with 50 additions and 27 deletions

View File

@@ -0,0 +1,16 @@
name: CI
on:
push:
branches: [ master ]
jobs:
build:
runs-on: hostinger
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Execute Gradle build
env:
PUBLISHER_TOKEN: ${{ secrets.PUBLISHER_TOKEN }}
run: ./gradlew build publish

View File

@@ -13,24 +13,24 @@ allprojects {
repositories {
maven {
url = woggioniMavenRepositoryUrl
url = getProperty('gitea.maven.url')
}
mavenCentral()
}
}
kotlin {
jvmToolchain(21)
sourceSets {
commonTest {
dependencies {
implementation group: 'org.jetbrains.kotlin',
name: 'kotlin-test',
version: catalog.versions.kotlin.get()
version: catalog.versions.kotlin.asProvider().get()
}
}
}
jvm {
jvmToolchain(17)
withJava()
compilations.main {
Action<KotlinJvmCompilerOptions> action = { KotlinJvmCompilerOptions kjco ->
@@ -69,16 +69,20 @@ compileJava {
options.compilerArgs << '--patch-module' << patchString
}
publishing {
repositories {
maven {
url = 'https://mvn.woggioni.net/'
}
}
publications {
maven(MavenPublication) {
from(components.kotlin)
name = "Gitea"
url = uri(getProperty('gitea.maven.url'))
credentials(HttpHeaderCredentials) {
name = "Authorization"
value = "token ${System.getenv()["PUBLISHER_TOKEN"]}"
}
authentication {
header(HttpHeaderAuthentication)
}
}
}
}

View File

@@ -1,7 +1,11 @@
org.gradle.configuration-cache=false
org.gradle.parallel=true
org.gradle.caching=true
kotlin.code.style=official
kotlin.jvm.target.validation.mode=ignore
woggioniMavenRepositoryUrl=https://woggioni.net/mvn/
gitea.maven.url = https://gitea.woggioni.net/api/packages/woggioni/maven
klevtree.version = 2024.02.12
lys.version = 2024.02.09
klevtree.version = 2025.03.11
lys.version = 2025.03.08

View File

@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

20
gradlew.bat vendored
View File

@@ -43,11 +43,11 @@ set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if %ERRORLEVEL% equ 0 goto execute
echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail
@@ -57,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe
if exist "%JAVA_EXE%" goto execute
echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
echo.
echo Please set the JAVA_HOME variable in your environment to match the
echo location of your Java installation.
echo. 1>&2
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2
echo. 1>&2
echo Please set the JAVA_HOME variable in your environment to match the 1>&2
echo location of your Java installation. 1>&2
goto fail

View File

@@ -1,7 +1,7 @@
pluginManagement {
repositories {
maven {
url = woggioniMavenRepositoryUrl
url = getProperty('gitea.maven.url')
}
gradlePluginPortal()
}
@@ -10,7 +10,7 @@ pluginManagement {
dependencyResolutionManagement {
repositories {
maven {
url = 'https://woggioni.net/mvn/'
url = getProperty('gitea.maven.url')
content {
includeGroup 'com.lys'
}
@@ -19,7 +19,6 @@ dependencyResolutionManagement {
versionCatalogs {
catalog {
from group: 'com.lys', name: 'lys-catalog', version: getProperty('lys.version')
version("slf4j", "1.7.36")
}
}
}