Skip to content

Commit

Permalink
Use 'oj' build system
Browse files Browse the repository at this point in the history
  • Loading branch information
jjohannes committed Jan 31, 2024
1 parent 5bb9f04 commit e229ed7
Show file tree
Hide file tree
Showing 26 changed files with 511 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: "CI Build"

on: [ push ] # macos-14

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: temurin
java-version-file: .oj/jdk-version.txt
- uses: gradle/actions/[email protected]
- run: "./oj check"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}

test-functional:
needs: check
strategy:
matrix:
module: [app]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: temurin
java-version-file: .oj/jdk-version.txt
- uses: gradle/actions/[email protected]
- run: "./oj :${{ matrix.module }}:checkEndToEnd"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}

package:
needs: check
strategy:
matrix:
os: [macos-13, macos-14, ubuntu-22.04, windows-2022]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: temurin
java-version-file: .oj/jdk-version.txt
- uses: gradle/[email protected]
- run: "./oj assemble${{ matrix.os }}"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}

build:
needs: [test-functional, package]
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
distribution: temurin
java-version-file: .oj/jdk-version.txt
- uses: gradle/actions/[email protected]
- run: "./oj build"
env:
BUILD_CACHE_USER: ${{ secrets.BUILD_CACHE_USER }}
BUILD_CACHE_PWD: ${{ secrets.BUILD_CACHE_PWD }}
- uses: actions/[email protected]
with:
name: Application Packages
path: .oj/build/*/packages/*
Binary file added .oj/gradle/gradle-wrapper.jar
Binary file not shown.
7 changes: 7 additions & 0 deletions .oj/gradle/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.6-rc-2-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Empty file added .oj/gradle/versions/.gitignore
Empty file.
1 change: 1 addition & 0 deletions .oj/jdk-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
21.0.1
3 changes: 3 additions & 0 deletions .oj/modules.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://onepiece.software/j/#modules
jakarta.activation=com.sun.activation:jakarta.activation
jakarta.mail=com.sun.mail:jakarta.mail
3 changes: 3 additions & 0 deletions .oj/patch/boms.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://onepiece.software/j#boms.properties
org.apache.poi=poi,poi-excelant,poi-ooxml,poi-scratchpad
org.slf4j=slf4j-api,slf4j-simple,slf4j-nop,slf4j-jdk14,slf4j-log4j12,slf4j-reload4j,slf4j-jcl,slf4j-android,slf4j-ext,jcl-over-slf4j,log4j-over-slf4j,jul-to-slf4j,osgi-over-slf4j
2 changes: 2 additions & 0 deletions .oj/patch/conflicts.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://onepiece.software/j/#conflicts.properties
com.sun.activation\:jakarta.activation=jakarta.activation:jakarta.activation-api,com.sun.activation:jakarta.activation
2 changes: 2 additions & 0 deletions .oj/patch/dependencies-add.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://onepiece.software/j/#dependencies.add.properties
io.netty\:netty-common=io.projectreactor.tools:blockhound:1.0.8.RELEASE
2 changes: 2 additions & 0 deletions .oj/patch/dependencies-rm.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://onepiece.software/j/patch/dependencies-rm
com.google.guava\:guava=com.google.guava:failureaccess,com.google.guava:listenablefuture,com.google.code.findbugs:jsr305,org.checkerframework:checker-qual,com.google.errorprone:error_prone_annotations,com.google.j2objc:j2objc-annotations
2 changes: 2 additions & 0 deletions .oj/patch/features.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://onepiece.software/j/#features.properties
io.netty\:netty-transport-native-epoll=linux-x86_64,linux-aarch_64
10 changes: 10 additions & 0 deletions .oj/patch/non-modules.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# https://onepiece.software/j/patch/non-modules
SparseBitSet=com.zaxxer:SparseBitSet
com.github.virtuald.curvesapi=com.github.virtuald:curvesapi
com.google.common=com.google.guava:guava
commons.math3=org.apache.commons:commons-math3
javax.annotations.jsr305=com.google.code.findbugs:jsr305
org.apache.commons.codec=commons-codec:commons-codec
org.apache.commons.collections4=org.apache.commons:commons-collections4
org.apache.commons.lang3=org.apache.commons:commons-lang3
velocity.engine.core=org.apache.velocity:velocity-engine-core
2 changes: 2 additions & 0 deletions .oj/patch/targets.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://onepiece.software/j/#targets.properties
org.openjfx\:javafx-base=[none|none],mac[macos|x86-64],mac-aarch64[macos|aarch64],win[windows|x86-64],linux-aarch64[linux|x86-64]
12 changes: 12 additions & 0 deletions .oj/product.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# https://onepiece.software/j/product
name=Gradle Project Setup HowTo
version=1.0
domain=product.example.org
modules=
targets=macos-13[macos|x86-64],macos-14[macos|aarch64],ubuntu-22.04[linux|x86-64],windows-2022[windows|x86-64]
classpath=false
opensource=true
javadoc=true
description=How to structure a growing Gradle project with smart dependency management?
vendor=Jendrik Johannes (onepiece.Software)
copyright=Copyright 2024, Jendrik Johannes
3 changes: 3 additions & 0 deletions .oj/productivity.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://onepiece.software/j/productivity
build.cache.url=https://gradle.onepiece.software:5071/cache
build.develocity.url=https://scans.gradle.com
2 changes: 2 additions & 0 deletions .oj/publishing.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://onepiece.software/j/publishing
local=/tmp/my-repo
3 changes: 3 additions & 0 deletions .oj/repositories.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://onepiece.software/j/#repositories.properties
mavenCentral=https://repo1.maven.org/maven2
foojayJavaToolchains=https://api.foojay.io/disco
6 changes: 6 additions & 0 deletions .oj/tweak/endToEndTest.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# https://onepiece.software/j/tweak/endToEndTest
test.lifecycle=checkEndToEnd
javac.jvm.options=
javac.options=
test.jvm.options=
test.parallelism=0
5 changes: 5 additions & 0 deletions .oj/tweak/main.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://onepiece.software/j/tweak/main
javac.jvm.options=
javac.options=
run.jvm.options=
run.app.options=
3 changes: 3 additions & 0 deletions .oj/tweak/mockApi.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://onepiece.software/j/tweak/mockApi
javac.jvm.options=
javac.options=
6 changes: 6 additions & 0 deletions .oj/tweak/test.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# https://onepiece.software/j/tweak/test
test.lifecycle=check
javac.jvm.options=
javac.options=
test.jvm.options=-Xmx1g
test.parallelism=8
3 changes: 3 additions & 0 deletions .oj/tweak/testFixtures.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://onepiece.software/j/tweak/testFixtures
javac.jvm.options=
javac.options=
15 changes: 15 additions & 0 deletions .oj/versions.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# https://onepiece.software/j/versions
com.fasterxml.jackson.databind=2.16.1
com.google.common=33.0.0-jre
jakarta.activation=1.2.2
jakarta.mail=1.6.7
jakarta.servlet=6.0.0
java.inject=1.0.5
javax.annotations.jsr305=3.0.2
org.apache.commons.compress=1.25.0
org.apache.commons.io=2.15.1
org.apache.poi.poi=5.2.2
org.assertj.core=3.25.1
org.junit.jupiter.api=5.10.1
org.slf4j=2.0.10
velocity.engine.core=2.3
Loading

0 comments on commit e229ed7

Please sign in to comment.