Compare commits
11
Commits
fe3d5e6031
..
1.1.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a1759e3b22 | ||
|
|
f3ce6defad | ||
|
|
4fcb113b2f | ||
|
|
378484dacb | ||
|
|
76f7cefa58 | ||
|
|
c5f0e3ff97 | ||
|
|
26bbd0417f | ||
|
|
e77bdcb061 | ||
|
|
dabe9701ea | ||
|
|
66c631efb0 | ||
|
|
a9c9c06fab |
@@ -0,0 +1,43 @@
|
|||||||
|
name: release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- "*"
|
||||||
|
|
||||||
|
env:
|
||||||
|
VERSION: "${{github.ref_name}}"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
java: [
|
||||||
|
21, # Current Java LTS
|
||||||
|
]
|
||||||
|
runs-on: ubuntu-22.04
|
||||||
|
steps:
|
||||||
|
- name: checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: validate gradle wrapper
|
||||||
|
uses: gradle/wrapper-validation-action@v2
|
||||||
|
- name: setup jdk ${{ matrix.java }}
|
||||||
|
uses: actions/setup-java@v4
|
||||||
|
with:
|
||||||
|
java-version: ${{ matrix.java }}
|
||||||
|
distribution: "temurin"
|
||||||
|
- name: make gradle wrapper executable
|
||||||
|
run: chmod +x ./gradlew
|
||||||
|
- name: build
|
||||||
|
run: ./gradlew build
|
||||||
|
- name: publish maven
|
||||||
|
continue-on-error: true
|
||||||
|
env:
|
||||||
|
MAVEN_TOKEN: "${{secrets.MAVEN_TOKEN}}"
|
||||||
|
run: ./gradlew publish
|
||||||
|
- name: publish release
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
build/libs/**
|
||||||
|
token: "${{secrets.GITHUB_TOKEN}}"
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
# Automatically build the project and run any configured tests for every push
|
|
||||||
# and submitted pull request. This can help catch issues that only occur on
|
|
||||||
# certain platforms or Java versions, and provides a first line of defence
|
|
||||||
# against bad commits.
|
|
||||||
|
|
||||||
name: build
|
|
||||||
on: [pull_request, push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
# Use these Java versions
|
|
||||||
java: [
|
|
||||||
21, # Current Java LTS
|
|
||||||
]
|
|
||||||
runs-on: ubuntu-22.04
|
|
||||||
steps:
|
|
||||||
- name: checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: validate gradle wrapper
|
|
||||||
uses: gradle/wrapper-validation-action@v2
|
|
||||||
- name: setup jdk ${{ matrix.java }}
|
|
||||||
uses: actions/setup-java@v4
|
|
||||||
with:
|
|
||||||
java-version: ${{ matrix.java }}
|
|
||||||
distribution: 'microsoft'
|
|
||||||
- name: make gradle wrapper executable
|
|
||||||
run: chmod +x ./gradlew
|
|
||||||
- name: build
|
|
||||||
run: ./gradlew build
|
|
||||||
- name: capture build artifacts
|
|
||||||
if: ${{ matrix.java == '21' }} # Only upload artifacts built from latest java
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: Artifacts
|
|
||||||
path: build/libs/
|
|
||||||
@@ -9,7 +9,7 @@ cooperative data synthesis.
|
|||||||
Gradle:
|
Gradle:
|
||||||
```groovy
|
```groovy
|
||||||
repositories {
|
repositories {
|
||||||
maven { url "https://maven.bigduckie.dev/releases" }
|
maven { url "https://git.bigduckie.dev/api/packages/big-duckie/maven" }
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|||||||
+15
-6
@@ -1,8 +1,12 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'fabric-loom' version '1.8-SNAPSHOT'
|
id 'fabric-loom' version '1.10-SNAPSHOT'
|
||||||
id 'maven-publish'
|
id 'maven-publish'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (System.getenv("VERSION")) {
|
||||||
|
project.mod_version = System.getenv("VERSION")
|
||||||
|
}
|
||||||
|
|
||||||
version = "${project.mod_version}-${project.minecraft_version}"
|
version = "${project.mod_version}-${project.minecraft_version}"
|
||||||
group = project.maven_group
|
group = project.maven_group
|
||||||
|
|
||||||
@@ -87,11 +91,16 @@ publishing {
|
|||||||
// The repositories here will be used for publishing your artifact, not for
|
// The repositories here will be used for publishing your artifact, not for
|
||||||
// retrieving dependencies.
|
// retrieving dependencies.
|
||||||
maven {
|
maven {
|
||||||
name = "personal"
|
name = "Gitea"
|
||||||
url = "https://maven.bigduckie.dev/releases"
|
url = uri("https://git.bigduckie.dev/api/packages/big-duckie/maven")
|
||||||
credentials {
|
|
||||||
username = System.getenv("MAVEN_USERNAME")
|
credentials(HttpHeaderCredentials) {
|
||||||
password = System.getenv("MAVEN_PASSWORD")
|
name = "Authorization"
|
||||||
|
value = "token ${System.getenv("MAVEN_TOKEN")}"
|
||||||
|
}
|
||||||
|
|
||||||
|
authentication {
|
||||||
|
header(HttpHeaderAuthentication)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+5
-5
@@ -4,14 +4,14 @@ org.gradle.parallel=true
|
|||||||
|
|
||||||
# Fabric Properties
|
# Fabric Properties
|
||||||
# check these on https://fabricmc.net/develop
|
# check these on https://fabricmc.net/develop
|
||||||
minecraft_version=1.20.1
|
minecraft_version=1.21.1
|
||||||
yarn_mappings=1.20.1+build.10
|
yarn_mappings=1.21.1+build.3
|
||||||
loader_version=0.16.7
|
loader_version=0.16.11
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version=1.0.7
|
mod_version=dev
|
||||||
maven_group=dev.bigduckie
|
maven_group=dev.bigduckie
|
||||||
archives_base_name=static-data
|
archives_base_name=static-data
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
fabric_version=0.92.2+1.20.1
|
fabric_version=0.115.4+1.21.1
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
distributionBase=GRADLE_USER_HOME
|
distributionBase=GRADLE_USER_HOME
|
||||||
distributionPath=wrapper/dists
|
distributionPath=wrapper/dists
|
||||||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
|
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-bin.zip
|
||||||
networkTimeout=10000
|
networkTimeout=10000
|
||||||
validateDistributionUrl=true
|
validateDistributionUrl=true
|
||||||
zipStoreBase=GRADLE_USER_HOME
|
zipStoreBase=GRADLE_USER_HOME
|
||||||
|
|||||||
@@ -145,7 +145,7 @@ public class StaticData {
|
|||||||
if (Files.isDirectory(globalStaticDataFolder)) {
|
if (Files.isDirectory(globalStaticDataFolder)) {
|
||||||
Path data = globalStaticDataFolder.resolve(name);
|
Path data = globalStaticDataFolder.resolve(name);
|
||||||
if (Files.exists(data) && !Files.isDirectory(data)) {
|
if (Files.exists(data) && !Files.isDirectory(data)) {
|
||||||
return Optional.of(new StaticDataItem(new Identifier(GLOBAL_DATA_NAMESPACE, name), data));
|
return Optional.of(new StaticDataItem(Identifier.of(GLOBAL_DATA_NAMESPACE, name), data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -246,10 +246,10 @@ public class StaticData {
|
|||||||
if (rel.startsWith("static_data/")) { //Should always be true
|
if (rel.startsWith("static_data/")) { //Should always be true
|
||||||
rel = rel.substring("static_data/".length());
|
rel = rel.substring("static_data/".length());
|
||||||
}
|
}
|
||||||
return new Identifier(container.getMetadata().getId(), rel);
|
return Identifier.of(container.getMetadata().getId(), rel);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static Identifier toGlobalIdentifier(Path root, Path path) {
|
private static Identifier toGlobalIdentifier(Path root, Path path) {
|
||||||
return new Identifier(GLOBAL_DATA_NAMESPACE, getRelative(root, path));
|
return Identifier.of(GLOBAL_DATA_NAMESPACE, getRelative(root, path));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,11 @@
|
|||||||
"dev.bigduckie.staticdata.StaticDataInitializer"
|
"dev.bigduckie.staticdata.StaticDataInitializer"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"custom": {
|
||||||
|
"modmenu": {
|
||||||
|
"badges": [ "library" ]
|
||||||
|
}
|
||||||
|
},
|
||||||
"depends": {
|
"depends": {
|
||||||
"fabricloader": ">=0.16.7",
|
"fabricloader": ">=0.16.7",
|
||||||
"minecraft": "~1.20.1",
|
"minecraft": "~1.20.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user