Skip to content

Commit

Permalink
Compiling again
Browse files Browse the repository at this point in the history
  • Loading branch information
spikymonkey committed Jul 9, 2020
1 parent 7c7c31b commit 2ec6bfc
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 84 deletions.
41 changes: 24 additions & 17 deletions build.gradle
Expand Up @@ -18,7 +18,7 @@ import java.util.concurrent.ConcurrentHashMap

plugins {
id "io.spring.nohttp"
id "io.spring.dependency-management"
id "io.spring.dependency-management" apply false
}

ext {
Expand Down Expand Up @@ -52,6 +52,16 @@ if (!project.hasProperty("onlyShowStandardStreamsOnTestFailure")) {

description = "Spring Cloud App Broker"

allprojects {
apply plugin: "io.spring.nohttp"

afterEvaluate { project ->
if (project.description == null || project.description.isEmpty()) {
throw new InvalidUserDataException("A project description is required for publishing to maven central")
}
}
}

configure(allprojects - documentationProjects) {
apply plugin: "checkstyle"
apply plugin: "pmd"
Expand Down Expand Up @@ -86,9 +96,9 @@ configure(allprojects - documentationProjects) {
// }
}

configure(subprojects - starterProjects) {
apply plugin: "java-library"
apply plugin: "jacoco"
configure(codeProjects) {
apply plugin: 'java-library'
apply plugin: "io.spring.dependency-management"

repositories {
mavenCentral()
Expand All @@ -103,6 +113,10 @@ configure(subprojects - starterProjects) {
maven { url "https://repo.spring.io/snapshot" }
}
}
}

configure(libraryProjects) {
apply plugin: "jacoco"

sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand Down Expand Up @@ -233,25 +247,18 @@ configure(subprojects - starterProjects) {
configurations {
// exclude JUnit 4 globally, in favor of JUnit 5
testImplementation.exclude group: "junit", module: "junit"
}
}

configure(starterProjects) {
apply plugin: 'java-library'
}

allprojects {
afterEvaluate { project ->
if (project.description == null || project.description.isEmpty()) {
throw new InvalidUserDataException("A project description is required for publishing to maven central")
}
testImplementation.exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}

def getDocumentationProjects() {
[project(":spring-cloud-app-broker-docs")] as Set
}

def getCodeProjects() {
return starterProjects + libraryProjects + documentationProjects
}

def getStarterProjects() {
[project(":spring-cloud-starter-app-broker"),
project(":spring-cloud-starter-app-broker-cloudfoundry"),
Expand All @@ -266,7 +273,7 @@ task api(type: Javadoc) {
group = "Documentation"
description = "Generates aggregated Javadoc API documentation."
title = "${rootProject.description} ${version} API"
options.memberLevel = org.gradle.external.javadoc.JavadocMemberLevel.PROTECTED
options.memberLevel = JavadocMemberLevel.PROTECTED
options.author = true
options.header = rootProject.description
options.links(javadocLinks)
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle
@@ -1,8 +1,11 @@
pluginManagement {
plugins {
id "io.spring.dependency-management" version "1.0.9.RELEASE"
id "org.springframework.boot" version "2.2.7.RELEASE"
id "com.jfrog.artifactory" version "4.15.2"
id "io.spring.nohttp" version "0.0.5.RELEASE"
id 'org.asciidoctor.jvm.pdf' version '3.1.0'
id 'org.asciidoctor.jvm.convert' version '3.1.0'
}
}

Expand Down
23 changes: 6 additions & 17 deletions spring-cloud-app-broker-acceptance-tests/build.gradle
Expand Up @@ -14,37 +14,23 @@
* limitations under the License.
*/

buildscript {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2/" }
}

dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
plugins {
id 'org.springframework.boot'
}

description = "Spring Cloud App Broker Acceptance Tests"

// don't publish the jar for the acceptance tests project
configurations.archives.artifacts.clear()

apply plugin: 'org.springframework.boot'

dependencies {
implementation project(":spring-cloud-starter-app-broker-cloudfoundry")
implementation("org.springframework.boot:spring-boot-starter-webflux")

testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("io.projectreactor:reactor-test")
}

// build the test broker from /src into a jar that the tests can deploy
test.dependsOn assemble

// omit the version from the test broker jar file
jar {
archiveVersion = ''
Expand All @@ -54,6 +40,9 @@ bootJar {
}

test {
// build the test broker from /src into a jar that the tests can deploy
dependsOn assemble

maxParallelForks = Runtime.runtime.availableProcessors() - 1 ?: 1

// Only run the tests if acceptanceTests is specified
Expand Down
30 changes: 16 additions & 14 deletions spring-cloud-app-broker-autoconfigure/build.gradle
Expand Up @@ -29,26 +29,28 @@ java {
}

dependencies {
compile project(":spring-cloud-app-broker-core")
compile project(":spring-cloud-app-broker-deployer")
compile project(":spring-cloud-app-broker-deployer-cloudfoundry")
loggingImplementation project(":spring-cloud-app-broker-logging")
compile project(":spring-cloud-app-broker-security-credhub")
compile("org.springframework.boot:spring-boot-starter")
compile("org.cloudfoundry:cloudfoundry-client-reactor:${cfJavaClientVersion}")
compile("org.cloudfoundry:cloudfoundry-operations:${cfJavaClientVersion}")
compile("org.springframework.credhub:spring-credhub-starter:${springCredhubVersion}")

annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
annotationProcessor("org.springframework.boot:spring-boot-autoconfigure-processor")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
compileOnly "org.immutables:value:2.8.8"

testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
implementation project(":spring-cloud-app-broker-core")
implementation project(":spring-cloud-app-broker-deployer")
implementation project(":spring-cloud-app-broker-deployer-cloudfoundry")
implementation project(":spring-cloud-app-broker-security-credhub")
implementation("org.springframework.boot:spring-boot-starter")
implementation("org.springframework.boot:spring-boot-starter-webflux")
implementation("org.cloudfoundry:cloudfoundry-client-reactor:${cfJavaClientVersion}")
implementation("org.cloudfoundry:cloudfoundry-operations:${cfJavaClientVersion}")
implementation("org.springframework.credhub:spring-credhub-starter:${springCredhubVersion}")

loggingImplementation project(":spring-cloud-app-broker-logging")

testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.boot:spring-boot-starter-webflux")
testImplementation("io.projectreactor.tools:blockhound-junit-platform:${blockHoundVersion}")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

compileJava.dependsOn(processResources)
13 changes: 7 additions & 6 deletions spring-cloud-app-broker-core/build.gradle
Expand Up @@ -30,12 +30,13 @@ dependencyManagement {
}

dependencies {
compile project(":spring-cloud-app-broker-deployer")
compile("org.springframework:spring-core")
compile("org.springframework:spring-context")
compile("io.projectreactor:reactor-core")
compile("org.springframework.cloud:spring-cloud-open-service-broker-core:${openServiceBrokerVersion}")
compile("org.apache.commons:commons-text:1.8")
api("org.springframework.cloud:spring-cloud-open-service-broker-core:${openServiceBrokerVersion}")

implementation project(":spring-cloud-app-broker-deployer")
implementation("org.springframework:spring-core")
implementation("org.springframework:spring-context")
implementation("io.projectreactor:reactor-core")
implementation("org.apache.commons:commons-text:1.8")

testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:${junitJupiterVersion}")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:${junitPlatformLauncherVersion}")
Expand Down
10 changes: 5 additions & 5 deletions spring-cloud-app-broker-deployer-cloudfoundry/build.gradle
Expand Up @@ -27,11 +27,11 @@ dependencyManagement {
}

dependencies {
compile project(":spring-cloud-app-broker-deployer")
compile("org.cloudfoundry:cloudfoundry-client-reactor:${cfJavaClientVersion}")
compile("org.cloudfoundry:cloudfoundry-operations:${cfJavaClientVersion}")
compile("org.springframework.boot:spring-boot-starter-validation")
compile("org.immutables:value:${immutablesVersion}")
implementation project(":spring-cloud-app-broker-deployer")
implementation("org.cloudfoundry:cloudfoundry-client-reactor:${cfJavaClientVersion}")
implementation("org.cloudfoundry:cloudfoundry-operations:${cfJavaClientVersion}")
implementation("org.springframework.boot:spring-boot-starter-validation")
implementation("org.immutables:value:${immutablesVersion}")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")

Expand Down
4 changes: 2 additions & 2 deletions spring-cloud-app-broker-deployer/build.gradle
Expand Up @@ -23,8 +23,8 @@ dependencyManagement {
}

dependencies {
compile("org.springframework:spring-core")
compile("io.projectreactor:reactor-core")
implementation("org.springframework:spring-core")
implementation("io.projectreactor:reactor-core")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")

Expand Down
10 changes: 2 additions & 8 deletions spring-cloud-app-broker-docs/build.gradle
Expand Up @@ -14,15 +14,9 @@
* limitations under the License.
*/

buildscript {
repositories {
maven { url "https://repo.spring.io/plugins-release" }
}
}

plugins {
id 'org.asciidoctor.jvm.pdf' version '3.1.0'
id 'org.asciidoctor.jvm.convert' version '3.1.0'
id 'org.asciidoctor.jvm.pdf'
id 'org.asciidoctor.jvm.convert'
}

description = "Spring Cloud App Broker Documentation"
Expand Down
8 changes: 4 additions & 4 deletions spring-cloud-app-broker-logging/build.gradle
Expand Up @@ -28,10 +28,10 @@ ext {
}

dependencies {
compile "org.springframework.boot:spring-boot-starter-webflux"
compile "org.cloudfoundry:cloudfoundry-client-reactor:${cfJavaClientVersion}"
compile "org.cloudfoundry:cloudfoundry-operations:${cfJavaClientVersion}"
compile "org.immutables:value:${immutablesVersion}"
implementation "org.springframework.boot:spring-boot-starter-webflux"
implementation "org.cloudfoundry:cloudfoundry-client-reactor:${cfJavaClientVersion}"
implementation "org.cloudfoundry:cloudfoundry-operations:${cfJavaClientVersion}"
implementation "org.immutables:value:${immutablesVersion}"

testImplementation("org.springframework.boot:spring-boot-starter-test") {
exclude group: 'junit', module: 'junit'
Expand Down
6 changes: 3 additions & 3 deletions spring-cloud-app-broker-security-credhub/build.gradle
Expand Up @@ -23,9 +23,9 @@ dependencyManagement {
}

dependencies {
compile project(":spring-cloud-app-broker-core")
compile("org.springframework.credhub:spring-credhub-starter:${springCredhubVersion}")
compile("org.springframework.cloud:spring-cloud-open-service-broker-core:${openServiceBrokerVersion}")
implementation project(":spring-cloud-app-broker-core")
implementation("org.springframework.credhub:spring-credhub-starter:${springCredhubVersion}")
implementation("org.springframework.cloud:spring-cloud-open-service-broker-core:${openServiceBrokerVersion}")

testRuntimeOnly("org.junit.platform:junit-platform-launcher")

Expand Down
10 changes: 5 additions & 5 deletions spring-cloud-starter-app-broker-cloudfoundry/build.gradle
Expand Up @@ -23,11 +23,11 @@ dependencyManagement {
}

dependencies {
compile project(":spring-cloud-starter-app-broker")
compile project(":spring-cloud-app-broker-deployer-cloudfoundry")
compile project(":spring-cloud-app-broker-security-credhub")
compile("org.cloudfoundry:cloudfoundry-client-reactor:${cfJavaClientVersion}")
compile("org.cloudfoundry:cloudfoundry-operations:${cfJavaClientVersion}")
api project(":spring-cloud-starter-app-broker")
implementation project(":spring-cloud-app-broker-deployer-cloudfoundry")
implementation project(":spring-cloud-app-broker-security-credhub")
implementation("org.cloudfoundry:cloudfoundry-client-reactor:${cfJavaClientVersion}")
implementation("org.cloudfoundry:cloudfoundry-operations:${cfJavaClientVersion}")
}

// TODO maven publication
Expand Down
4 changes: 2 additions & 2 deletions spring-cloud-starter-app-broker-logging/build.gradle
Expand Up @@ -23,8 +23,8 @@ dependencyManagement {
}

dependencies {
compile project(":spring-cloud-starter-app-broker")
compile project(":spring-cloud-app-broker-logging")
implementation project(":spring-cloud-starter-app-broker")
implementation project(":spring-cloud-app-broker-logging")
}

// TODO maven publication
Expand Down
2 changes: 1 addition & 1 deletion spring-cloud-starter-app-broker/build.gradle
Expand Up @@ -23,7 +23,7 @@ dependencyManagement {
}

dependencies {
implementation project(":spring-cloud-app-broker-core")
api project(":spring-cloud-app-broker-core")
implementation project(":spring-cloud-app-broker-autoconfigure")
implementation "org.springframework.cloud:spring-cloud-starter-open-service-broker:${openServiceBrokerVersion}"
}
Expand Down

0 comments on commit 2ec6bfc

Please sign in to comment.