Skip to content

Commit 86b046c

Browse files
authored
Merge pull request #1 from pledger-io/feature/FIN-354-update-build-scripting
Feature/fin 354 update build scripting
2 parents d45e655 + 4f731aa commit 86b046c

File tree

36 files changed

+397
-366
lines changed

36 files changed

+397
-366
lines changed

.github/workflows/feature-build.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build a feature branch
2+
on:
3+
push:
4+
branches:
5+
- 'feature/**'
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Configure Java version
16+
uses: actions/setup-java@v3
17+
with:
18+
java-version: '21'
19+
distribution: 'temurin'
20+
architecture: x64
21+
- name: Setup Gradle
22+
uses: gradle/actions/setup-gradle@417ae3ccd767c252f5661f1ace9f835f9654f2b5
23+
- name: Build code
24+
run: ./gradlew check

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Pledger.io has the following features:
2828

2929
## Get started
3030

31-
**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.
31+
**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.
3232

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

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

4646
### Running the backend
4747

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

5151
http://localhost:8080/spec/index.html

bpmn-process/build.gradle

Lines changed: 0 additions & 16 deletions
This file was deleted.

bpmn-process/build.gradle.kts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
micronaut {
2+
testRuntime("junit5")
3+
}
4+
5+
dependencies {
6+
annotationProcessor(mn.lombok)
7+
testAnnotationProcessor(mn.lombok)
8+
9+
implementation(libs.lang)
10+
implementation(libs.lang.xml)
11+
implementation(libs.camunda)
12+
13+
implementation(libs.bouncy)
14+
implementation(libs.csv)
15+
16+
compileOnly(mn.lombok)
17+
testCompileOnly(mn.lombok)
18+
19+
// Investigate if this can be swapped for micronaut serde
20+
implementation(mn.micronaut.jackson.databind)
21+
implementation(mn.micronaut.serde.jackson)
22+
23+
implementation(project(":core"))
24+
implementation(project(":domain"))
25+
implementation(project(":rule-engine"))
26+
27+
runtimeOnly(mn.h2)
28+
runtimeOnly(mn.snakeyaml)
29+
implementation(mn.validation)
30+
31+
testRuntimeOnly(mn.logback.classic)
32+
testImplementation(mn.micronaut.test.junit5)
33+
testImplementation(libs.bundles.junit)
34+
}

build.gradle

Lines changed: 0 additions & 194 deletions
This file was deleted.

build.gradle.kts

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
plugins {
2+
id("io.micronaut.library") apply false
3+
id("maven-publish")
4+
id("signing")
5+
id("java")
6+
}
7+
8+
var isCiCd = System.getProperty("cicd") == "true"
9+
10+
//subprojects {
11+
// apply(plugin = "java")
12+
// apply(plugin = "io.micronaut.library")
13+
//
14+
// apply(plugin = "signing")
15+
// apply(plugin = "maven-publish")
16+
//
17+
// if (isCiCd) {
18+
// // when running in CI/CD environment we need to build with sources and JavaDoc and publish to maven central
19+
// java {
20+
// withSourcesJar()
21+
// withJavadocJar()
22+
// }
23+
//
24+
// tasks.javadoc {
25+
// options {
26+
// // silence the Javadoc generation
27+
// this as StandardJavadocDocletOptions
28+
// addBooleanOption("Xdoclint:none", true)
29+
// }
30+
// }
31+
//
32+
// publishing {
33+
// publications {
34+
// create<MavenPublication>("maven") {
35+
// groupId = "com.jongsoft.finance"
36+
// version = "3.3.0-SNAPSHOT"
37+
//
38+
// from(components["java"])
39+
//
40+
// pom {
41+
// description = "The REST-API for Pledger.io"
42+
// url = "https://www.pledger.io/"
43+
// name = project.name
44+
// scm {
45+
// connection = "scm:git:git@bitbucket.org:jongsoftdev/fintrack-application.git"
46+
// developerConnection = "scm:git:git@bitbucket.org:jongsoftdev/fintrack-application.git"
47+
// url = "https://bitbucket.org/jongsoftdev/fintrack-application/src/master/"
48+
// }
49+
// licenses {
50+
// license {
51+
// name = "MIT License"
52+
// url = "http://www.opensource.org/licenses/mit-license.php"
53+
// }
54+
// }
55+
// developers {
56+
// developer {
57+
// id = "gjong"
58+
// name = "Gerben Jongerius"
59+
// email = "g.jongerius@jong-soft.com"
60+
// }
61+
// }
62+
// }
63+
// }
64+
// }
65+
//
66+
// repositories {
67+
// maven {
68+
// url = uri(layout.buildDirectory.dir("repo"))
69+
//
70+
// if (System.getenv("CI") == "true")
71+
// credentials {
72+
// username = System.getenv("OSSRH_USERNAME")
73+
// password = System.getenv("OSSRH_PASSWORD")
74+
// }
75+
// }
76+
// }
77+
// }
78+
//
79+
// signing {
80+
// sign(publishing.publications["maven"])
81+
// }
82+
// }
83+
//}

core/build.gradle

Lines changed: 0 additions & 2 deletions
This file was deleted.

core/build.gradle.kts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
micronaut {
2+
testRuntime("junit5")
3+
}
4+
5+
dependencies {
6+
implementation(mn.micronaut.runtime)
7+
implementation(mn.validation)
8+
implementation(libs.lang)
9+
10+
testImplementation(mn.micronaut.test.junit5)
11+
testImplementation(libs.bundles.junit)
12+
}

0 commit comments

Comments
 (0)