Skip to content

Commit 2c7ccd1

Browse files
committed
Project DTOs
1 parent 916d44d commit 2c7ccd1

25 files changed

Lines changed: 1043 additions & 0 deletions

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master, main]
6+
pull_request:
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-java@v4
14+
with:
15+
distribution: temurin
16+
java-version: '17'
17+
- uses: gradle/actions/setup-gradle@v4
18+
- run: ./gradlew test

README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,31 @@
11
# wurst-project-config
22

3+
Shared Java model and parsing helpers for `wurst.build`.
4+
5+
This library intentionally stays small:
6+
7+
- Java records for the project DTOs
8+
- no runtime YAML dependency for the top-level build settings parser
9+
- shared WC3 patch target parsing for Grill and the compiler
10+
- lenient parsing: unknown build fields and unsupported legacy values are ignored
11+
- Java 17 bytecode, built with a Java 17 toolchain
12+
13+
## Build
14+
15+
```sh
16+
./gradlew test
17+
```
18+
19+
## Publishing
20+
21+
The Gradle `maven-publish` setup works with JitPack tags:
22+
23+
```groovy
24+
repositories {
25+
maven { url 'https://jitpack.io' }
26+
}
27+
28+
dependencies {
29+
implementation 'com.github.wurstscript:wurst-project-config:<tag>'
30+
}
31+
```

build.gradle

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
plugins {
2+
id 'java-library'
3+
id 'maven-publish'
4+
}
5+
6+
group = 'com.github.wurstscript'
7+
version = '0.1.0'
8+
9+
java {
10+
toolchain {
11+
languageVersion = JavaLanguageVersion.of(17)
12+
}
13+
withSourcesJar()
14+
withJavadocJar()
15+
}
16+
17+
tasks.withType(JavaCompile).configureEach {
18+
options.release = 17
19+
}
20+
21+
tasks.withType(Javadoc).configureEach {
22+
options.addStringOption('Xdoclint:none', '-quiet')
23+
}
24+
25+
dependencies {
26+
testImplementation 'org.testng:testng:7.11.0'
27+
}
28+
29+
test {
30+
useTestNG()
31+
}
32+
33+
publishing {
34+
publications {
35+
mavenJava(MavenPublication) {
36+
from components.java
37+
pom {
38+
name = 'wurst-project-config'
39+
description = 'Shared wurst.build data model and patch target parsing for Wurst tools.'
40+
url = 'https://github.com/wurstscript/wurst-project-config'
41+
licenses {
42+
license {
43+
name = 'Apache License, Version 2.0'
44+
url = 'https://www.apache.org/licenses/LICENSE-2.0'
45+
}
46+
}
47+
}
48+
}
49+
}
50+
}

gradle/wrapper/gradle-wrapper.jar

44.6 KB
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
distributionBase=GRADLE_USER_HOME
2+
distributionPath=wrapper/dists
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip
4+
networkTimeout=10000
5+
validateDistributionUrl=true
6+
zipStoreBase=GRADLE_USER_HOME
7+
zipStorePath=wrapper/dists

gradlew

Lines changed: 248 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)