create single-module version of the BuckPal codebase
This commit is contained in:
36
.github/workflows/ci.yml
vendored
Normal file
36
.github/workflows/ci.yml
vendored
Normal 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
|
||||
17
.travis.yml
17
.travis.yml
@@ -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
|
||||
@@ -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'
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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'
|
||||
}
|
||||
@@ -1,2 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
package io.reflectoring.buckpal.adapter.web;
|
||||
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class TestApplication {
|
||||
}
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
dependencies {
|
||||
implementation project(':buckpal-application')
|
||||
}
|
||||
56
build.gradle
56
build.gradle
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
dependencies {
|
||||
implementation 'org.springframework:spring-context'
|
||||
implementation 'javax.validation:validation-api'
|
||||
}
|
||||
|
||||
2
gradle/wrapper/gradle-wrapper.properties
vendored
2
gradle/wrapper/gradle-wrapper.properties
vendored
@@ -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
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
include 'common'
|
||||
include 'buckpal-configuration'
|
||||
|
||||
include 'adapters:buckpal-web'
|
||||
include 'adapters:buckpal-persistence'
|
||||
include 'buckpal-application'
|
||||
include 'buckpal-testdata'
|
||||
Reference in New Issue
Block a user