create single-module version of the BuckPal codebase

This commit is contained in:
Tom Hombergs
2021-02-20 13:01:44 +11:00
parent da897536e7
commit 612a40bced
59 changed files with 74 additions and 182 deletions

36
.github/workflows/ci.yml vendored Normal file
View File

@@ -0,0 +1,36 @@
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Checkout sources"
uses: actions/checkout@v1
- name: "Setup Java"
uses: actions/setup-java@v1
with:
java-version: 14
- name: "Initialize Gradle dependencies cache"
uses: actions/cache@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-caches-${{ hashFiles('**/build.gradle') }}
- name: "Run Gradle build"
run: chmod 755 gradlew && ./gradlew build
- name: "Zip build reports"
if: failure()
run: zip -r reports.zip **/build/reports
- uses: actions/upload-artifact@v1
name: "Upload build reports"
if: failure()
with:
name: reports
path: reports.zip

View File

@@ -1,17 +0,0 @@
before_install:
- chmod +x gradlew
- |
if ! git diff --name-only $TRAVIS_COMMIT_RANGE | grep -qvE '(.md)|^(LICENSE)'
then
echo "Not running CI since only docs were changed."
exit
fi
install: ./gradlew assemble
script: ./gradlew clean build --info
language: java
jdk:
- oraclejdk11

View File

@@ -1,26 +0,0 @@
dependencies {
implementation project(':common')
implementation project(':buckpal-application')
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'junit' // excluding junit 4
}
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.0.1'
testImplementation 'org.mockito:mockito-junit-jupiter:2.23.0'
testImplementation 'com.tngtech.archunit:archunit:0.9.3'
testImplementation 'de.adesso:junit-insights:1.1.0'
testImplementation 'org.junit.platform:junit-platform-launcher:1.4.2'
testImplementation 'com.h2database:h2'
testImplementation project(':buckpal-testdata')
}
test {
useJUnitPlatform()
systemProperty 'de.adesso.junitinsights.enabled', 'true'
}

View File

@@ -1,12 +0,0 @@
package io.reflectoring.buckpal.adapter.persistence;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
class TestApplication {
public static void main(String[] args) {
SpringApplication.run(TestApplication.class, args);
}
}

View File

@@ -1,23 +0,0 @@
dependencies {
implementation project(':common')
implementation project(':buckpal-application')
implementation 'org.springframework.boot:spring-boot-starter-web'
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'junit' // excluding junit 4
}
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.0.1'
testImplementation 'org.mockito:mockito-junit-jupiter:2.23.0'
testImplementation 'com.tngtech.archunit:archunit:0.9.3'
testImplementation 'de.adesso:junit-insights:1.1.0'
testImplementation 'org.junit.platform:junit-platform-launcher:1.4.2'
}
test {
useJUnitPlatform()
systemProperty 'de.adesso.junitinsights.enabled', 'true'
}

View File

@@ -1,2 +0,0 @@
Manifest-Version: 1.0

View File

@@ -1,7 +0,0 @@
package io.reflectoring.buckpal.adapter.web;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class TestApplication {
}

View File

@@ -1,26 +0,0 @@
dependencies {
implementation project(':common')
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'javax.transaction:javax.transaction-api'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'junit' // excluding junit 4
}
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.0.1'
testImplementation 'org.mockito:mockito-junit-jupiter:2.23.0'
testImplementation 'com.tngtech.archunit:archunit:0.9.3'
testImplementation 'de.adesso:junit-insights:1.1.0'
testImplementation 'org.junit.platform:junit-platform-launcher:1.4.2'
testImplementation project(':buckpal-testdata')
}
test {
useJUnitPlatform()
systemProperty 'de.adesso.junitinsights.enabled', 'true'
}

View File

@@ -1,34 +0,0 @@
plugins {
id "org.springframework.boot" version "2.1.9.RELEASE"
}
dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation project(':common')
implementation project(':buckpal-application')
implementation project(':adapters:buckpal-persistence')
implementation project(':adapters:buckpal-web')
implementation ('org.springframework.boot:spring-boot-starter-web')
runtimeOnly 'com.h2database:h2'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'junit' // excluding junit 4
}
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.0.1'
testImplementation 'org.junit.platform:junit-platform-launcher:1.4.2'
testImplementation 'org.mockito:mockito-junit-jupiter:2.23.0'
testImplementation 'com.tngtech.archunit:archunit:0.9.3'
testImplementation 'de.adesso:junit-insights:1.1.0'
testImplementation 'com.h2database:h2'
}
test {
useJUnitPlatform()
systemProperty 'de.adesso.junitinsights.enabled', 'true'
}

View File

@@ -1,3 +0,0 @@
dependencies {
implementation project(':buckpal-application')
}

View File

@@ -1,29 +1,47 @@
plugins {
id "io.spring.dependency-management" version "1.0.8.RELEASE"
id 'org.springframework.boot' version '2.4.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
}
subprojects {
group = 'io.reflectoring.reviewapp'
version = '0.0.1-SNAPSHOT'
group = 'io.reflectoring.buckpal'
version = '0.0.1-SNAPSHOT'
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java-library'
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'java-library'
repositories {
jcenter()
repositories {
mavenCentral()
}
compileJava {
sourceCompatibility = 11
targetCompatibility = 11
}
dependencies {
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
implementation ('org.springframework.boot:spring-boot-starter-web')
implementation 'org.springframework.boot:spring-boot-starter-validation'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'junit' // excluding junit 4
}
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.0.1'
testImplementation 'org.mockito:mockito-junit-jupiter:2.23.0'
testImplementation 'com.tngtech.archunit:archunit:0.9.3'
testImplementation 'org.junit.platform:junit-platform-launcher:1.4.2'
testImplementation 'com.h2database:h2'
dependencyManagement {
imports {
mavenBom("org.springframework.boot:spring-boot-dependencies:2.1.9.RELEASE")
}
}
compileJava {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
runtimeOnly 'com.h2database:h2'
}
test {
useJUnitPlatform()
}

View File

@@ -1,5 +0,0 @@
dependencies {
implementation 'org.springframework:spring-context'
implementation 'javax.validation:validation-api'
}

View File

@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

View File

@@ -1,7 +0,0 @@
include 'common'
include 'buckpal-configuration'
include 'adapters:buckpal-web'
include 'adapters:buckpal-persistence'
include 'buckpal-application'
include 'buckpal-testdata'