-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from pledger-io/feature/FIN-354-update-build-sc…
…ripting Feature/fin 354 update build scripting
- Loading branch information
Showing
36 changed files
with
397 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: Build a feature branch | ||
on: | ||
push: | ||
branches: | ||
- 'feature/**' | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Configure Java version | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '21' | ||
distribution: 'temurin' | ||
architecture: x64 | ||
- name: Setup Gradle | ||
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5 | ||
- name: Build code | ||
run: ./gradlew check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
micronaut { | ||
testRuntime("junit5") | ||
} | ||
|
||
dependencies { | ||
annotationProcessor(mn.lombok) | ||
testAnnotationProcessor(mn.lombok) | ||
|
||
implementation(libs.lang) | ||
implementation(libs.lang.xml) | ||
implementation(libs.camunda) | ||
|
||
implementation(libs.bouncy) | ||
implementation(libs.csv) | ||
|
||
compileOnly(mn.lombok) | ||
testCompileOnly(mn.lombok) | ||
|
||
// Investigate if this can be swapped for micronaut serde | ||
implementation(mn.micronaut.jackson.databind) | ||
implementation(mn.micronaut.serde.jackson) | ||
|
||
implementation(project(":core")) | ||
implementation(project(":domain")) | ||
implementation(project(":rule-engine")) | ||
|
||
runtimeOnly(mn.h2) | ||
runtimeOnly(mn.snakeyaml) | ||
implementation(mn.validation) | ||
|
||
testRuntimeOnly(mn.logback.classic) | ||
testImplementation(mn.micronaut.test.junit5) | ||
testImplementation(libs.bundles.junit) | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
plugins { | ||
id("io.micronaut.library") apply false | ||
id("maven-publish") | ||
id("signing") | ||
id("java") | ||
} | ||
|
||
var isCiCd = System.getProperty("cicd") == "true" | ||
|
||
//subprojects { | ||
// apply(plugin = "java") | ||
// apply(plugin = "io.micronaut.library") | ||
// | ||
// apply(plugin = "signing") | ||
// apply(plugin = "maven-publish") | ||
// | ||
// if (isCiCd) { | ||
// // when running in CI/CD environment we need to build with sources and JavaDoc and publish to maven central | ||
// java { | ||
// withSourcesJar() | ||
// withJavadocJar() | ||
// } | ||
// | ||
// tasks.javadoc { | ||
// options { | ||
// // silence the Javadoc generation | ||
// this as StandardJavadocDocletOptions | ||
// addBooleanOption("Xdoclint:none", true) | ||
// } | ||
// } | ||
// | ||
// publishing { | ||
// publications { | ||
// create<MavenPublication>("maven") { | ||
// groupId = "com.jongsoft.finance" | ||
// version = "3.3.0-SNAPSHOT" | ||
// | ||
// from(components["java"]) | ||
// | ||
// pom { | ||
// description = "The REST-API for Pledger.io" | ||
// url = "https://www.pledger.io/" | ||
// name = project.name | ||
// scm { | ||
// connection = "scm:git:git@bitbucket.org:jongsoftdev/fintrack-application.git" | ||
// developerConnection = "scm:git:git@bitbucket.org:jongsoftdev/fintrack-application.git" | ||
// url = "https://bitbucket.org/jongsoftdev/fintrack-application/src/master/" | ||
// } | ||
// licenses { | ||
// license { | ||
// name = "MIT License" | ||
// url = "http://www.opensource.org/licenses/mit-license.php" | ||
// } | ||
// } | ||
// developers { | ||
// developer { | ||
// id = "gjong" | ||
// name = "Gerben Jongerius" | ||
// email = "g.jongerius@jong-soft.com" | ||
// } | ||
// } | ||
// } | ||
// } | ||
// } | ||
// | ||
// repositories { | ||
// maven { | ||
// url = uri(layout.buildDirectory.dir("repo")) | ||
// | ||
// if (System.getenv("CI") == "true") | ||
// credentials { | ||
// username = System.getenv("OSSRH_USERNAME") | ||
// password = System.getenv("OSSRH_PASSWORD") | ||
// } | ||
// } | ||
// } | ||
// } | ||
// | ||
// signing { | ||
// sign(publishing.publications["maven"]) | ||
// } | ||
// } | ||
//} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
micronaut { | ||
testRuntime("junit5") | ||
} | ||
|
||
dependencies { | ||
implementation(mn.micronaut.runtime) | ||
implementation(mn.validation) | ||
implementation(libs.lang) | ||
|
||
testImplementation(mn.micronaut.test.junit5) | ||
testImplementation(libs.bundles.junit) | ||
} |
Oops, something went wrong.