Skip to content

Commit

Permalink
chroe: add earthly
Browse files Browse the repository at this point in the history
  • Loading branch information
pipinet committed Jul 28, 2024
1 parent c1aa9a1 commit 7d0b5ff
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 10 deletions.
9 changes: 5 additions & 4 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@ build-base:
FROM ${BUILD_IMAGE}
WORKDIR /app
COPY . .
RUN ./gradlew clean
RUN gradle clean
SAVE IMAGE --cache-hint

check:
FROM +build-base
RUN ./gradlew :basic-tree:test --tests "com.qwlabs.tree.LocationComparatorTest" --stacktrace --no-parallel --no-daemon
# RUN ./gradlew prepush --no-parallel --no-daemon
# RUN gradle :lang:test --stacktrace --no-parallel --no-daemon
# RUN gradle :basic-tree:test --tests "com.qwlabs.tree.LocationComparatorTest" --stacktrace --no-parallel --no-daemon
RUN gradle prepush --no-parallel --no-daemon

Check failure on line 23 in Earthfile

View workflow job for this annotation

GitHub Actions / commit-workflow

Error

The command RUN gradle prepush --no-parallel --no-daemon did not complete successfully. Exit code 1

publish:
FROM +build-base
Expand All @@ -28,7 +29,7 @@ publish:
RUN --secret GPG_PASSPHRASE export ORG_GRADLE_PROJECT_signingPassword="$GPG_PASSPHRASE"
RUN --secret OSSRH_TOKEN_USERNAME export OSSRH_TOKEN_USERNAME="$OSSRH_TOKEN_USERNAME"
RUN --secret OSSRH_TOKEN_PASSWORD export OSSRH_TOKEN_PASSWORD="$OSSRH_TOKEN_PASSWORD"
RUN ./gradlew publish --no-parallel --no-daemon
RUN gradle publish --no-parallel --no-daemon

ci-check:
BUILD +check
Expand Down
5 changes: 5 additions & 0 deletions auditing/src/main/resources/META-INF/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<beans xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_3_0.xsd"
bean-discovery-mode="all">
</beans>
2 changes: 1 addition & 1 deletion basic-tree/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//apply from: "${rootProject.rootDir}/gradle/jmh.gradle"
apply from: "${rootProject.rootDir}/gradle/jmh.gradle"

dependencies {
api project(":lang")
Expand Down
5 changes: 5 additions & 0 deletions basic-tree/src/main/resources/META-INF/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<beans xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_3_0.xsd"
bean-discovery-mode="all">
</beans>
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ subprojects {
apply from: "${rootProject.rootDir}/gradle/lombok.gradle"
apply from: "${rootProject.rootDir}/gradle/logging.gradle"
apply from: "${rootProject.rootDir}/gradle/check.gradle"
apply from: "${rootProject.rootDir}/gradle/build.gradle"
apply from: "${rootProject.rootDir}/gradle/publication.gradle"

repositories {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ nexusPublishPluginVersion=2.0.0
jmhPluginId=me.champeau.jmh
jmhPluginVersion=0.7.2

quarkusVersion=3.12.3
quarkusVersion=3.13.0
junitVersion=5.10.2
jmhVersion=1.37
guavaVersion=33.2.1-jre
Expand Down
11 changes: 11 additions & 0 deletions gradle/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
tasks.named('checkstyleMain') {
dependsOn('jandex')
}

tasks.named('checkstyleTest') {
dependsOn('jandex')
}

tasks.named('compileTestJava') {
dependsOn('jandex')
}
3 changes: 2 additions & 1 deletion gradle/version.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ def loadVersion() {
return file.text + '.' + pipelineId
}

version = loadVersion()
version = loadVersion()

5 changes: 5 additions & 0 deletions jakarta-json/src/main/resources/META-INF/beans.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<beans xmlns="https://jakarta.ee/xml/ns/jakartaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://jakarta.ee/xml/ns/jakartaee https://jakarta.ee/xml/ns/jakartaee/beans_3_0.xsd"
bean-discovery-mode="all">
</beans>
2 changes: 1 addition & 1 deletion lang/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//apply from: "${rootProject.rootDir}/gradle/jmh.gradle"
apply from: "${rootProject.rootDir}/gradle/jmh.gradle"

dependencies {
api "com.google.guava:guava:${guavaVersion}"
Expand Down
4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ pluginManagement {
rootProject.name = 'doraemon'

include 'lang'
include 'basic-tree'
include 'mptt-tree'
include 'exceptions'
include 'panache'
include 'jakarta-json'
Expand All @@ -32,8 +34,6 @@ include 'q-api'
include 'q-parser-antlr4'
include 'cdi'
include 'security'
include 'basic-tree'
include 'mptt-tree'
include 'quarkus-cache'
include 'quarkus-tenant'
include 'quarkus-http'
Expand Down

0 comments on commit 7d0b5ff

Please sign in to comment.