Compare commits

...

3 commits

3 changed files with 34 additions and 42 deletions

View file

@ -1,41 +0,0 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: "Build"
image: "eclipse-temurin:17-jdk"
commands:
- "./gradlew assemble"
- name: "Test"
image: "eclipse-temurin:17-jdk"
commands:
- "./gradlew test"
- name: "Create Release"
image: plugins/gitea-release
settings:
api_key:
from_secret: "gitea_api_key"
base_url:
from_secret: "gitea_base_url"
files: build/libs/DLib-*.jar
when:
event:
- tag
- name: "Publish to Maven"
image: "eclipse-temurin:17-jdk"
commands:
- "./gradlew publishReleasePublicationToMavenRepository"
environment:
MAVEN_REPO_URL:
from_secret: maven_repo_url
MAVEN_REPO_TOKEN:
from_secret: gitea_api_key
when:
event:
- tag
trigger:
event:
- push
- tag

33
.woodpecker.yml Normal file
View file

@ -0,0 +1,33 @@
pipeline:
build:
image: "eclipse-temurin:17-jdk"
commands:
- "./gradlew assemble"
test:
image: "eclipse-temurin:17-jdk"
commands:
- "./gradlew test"
release:
image: plugins/gitea-release
settings:
api_key:
from_secret: "gitea_api_key"
base_url:
from_secret: "gitea_base_url"
files: build/libs/DLib-*.jar
when:
event:
- tag
maven:
image: "eclipse-temurin:17-jdk"
commands:
- "./gradlew publishReleasePublicationToMavenRepository"
environment:
MAVEN_REPO_URL:
from_secret: maven_repo_url
MAVEN_REPO_TOKEN:
from_secret: gitea_api_key
when:
event:
- tag

View file

@ -19,7 +19,7 @@ dependencies {
paperDevBundle("1.19-R0.1-SNAPSHOT") paperDevBundle("1.19-R0.1-SNAPSHOT")
implementation(kotlin("reflect")) implementation(kotlin("reflect"))
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3") implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.3") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.3")
implementation("org.jetbrains.kotlin:kotlin-scripting-common") implementation("org.jetbrains.kotlin:kotlin-scripting-common")
implementation("org.jetbrains.kotlin:kotlin-scripting-jvm") implementation("org.jetbrains.kotlin:kotlin-scripting-jvm")