Skip to content

Commit

Permalink
Merge pull request #1 from pledger-io/feature/FIN-354-update-build-sc…
Browse files Browse the repository at this point in the history
…ripting

Feature/fin 354 update build scripting
  • Loading branch information
gjong authored Mar 13, 2024
2 parents d45e655 + 4f731aa commit 86b046c
Show file tree
Hide file tree
Showing 36 changed files with 397 additions and 366 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/feature-build.yml
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
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Pledger.io has the following features:

## Get started

**Note:** the front-end application can be found in the [user-interface](https://bitbucket.org/jongsoftdev/user-interface) repository. The [deployment](https://bitbucket.org/jongsoftdev/fintrack-deployment) build will bundle the front-end with this backend system.
**Note:** the front-end application can be found in the [user-interface](https://github.com/pledger-io/user-interface) repository. The [deployment](https://github.com/pledger-io/build-tooling) build will bundle the front-end with this backend system.

In this repository you will find the backend REST application needed to run Pledger.io.

Expand All @@ -45,7 +45,7 @@ You can build the application using the Gradle command:

### Running the backend

The generated phat JAR in the ```fintrack-api``` module can be started, which will run the backend of FinTrack. To access the
The generated phat JAR in the ```fintrack-api``` module can be started, which will run the backend of Pledger.io. To access the
API documentation use the url:

http://localhost:8080/spec/index.html
Expand Down
16 changes: 0 additions & 16 deletions bpmn-process/build.gradle

This file was deleted.

34 changes: 34 additions & 0 deletions bpmn-process/build.gradle.kts
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)
}
194 changes: 0 additions & 194 deletions build.gradle

This file was deleted.

83 changes: 83 additions & 0 deletions build.gradle.kts
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"])
// }
// }
//}
2 changes: 0 additions & 2 deletions core/build.gradle

This file was deleted.

12 changes: 12 additions & 0 deletions core/build.gradle.kts
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)
}
Loading

0 comments on commit 86b046c

Please sign in to comment.