Skip to content

Commit

Permalink
feat(rosco-bom): publish rosco-bom (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
fieldju committed Mar 10, 2020
1 parent 08ea918 commit 7f570d4
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 18 deletions.
37 changes: 20 additions & 17 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,26 @@ allprojects {
if (Boolean.valueOf(enablePublishing)) {
apply plugin: 'spinnaker.project'
}
apply plugin: "groovy"

group = "com.netflix.spinnaker.rosco"

tasks.withType(JavaExec) {
if (System.getProperty('DEBUG', 'false') == 'true') {
jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8187'
if (name != "rosco-bom") {
apply plugin: "groovy"

dependencies {
implementation platform("com.netflix.spinnaker.kork:kork-bom:$korkVersion")

annotationProcessor platform("com.netflix.spinnaker.kork:kork-bom:$korkVersion")
annotationProcessor "org.projectlombok:lombok"
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testAnnotationProcessor platform("com.netflix.spinnaker.kork:kork-bom:$korkVersion")
testAnnotationProcessor "org.projectlombok:lombok"
}

test {
testLogging {
exceptionFormat = 'full'
}
}
}
}
Expand All @@ -39,19 +52,9 @@ subprojects {
}
}

dependencies {
implementation platform("com.netflix.spinnaker.kork:kork-bom:$korkVersion")

annotationProcessor platform("com.netflix.spinnaker.kork:kork-bom:$korkVersion")
annotationProcessor "org.projectlombok:lombok"
annotationProcessor("org.springframework.boot:spring-boot-configuration-processor")
testAnnotationProcessor platform("com.netflix.spinnaker.kork:kork-bom:$korkVersion")
testAnnotationProcessor "org.projectlombok:lombok"
}

test {
testLogging {
exceptionFormat = 'full'
tasks.withType(JavaExec) {
if (System.getProperty('DEBUG', 'false') == 'true') {
jvmArgs '-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8187'
}
}
}
Expand Down
44 changes: 44 additions & 0 deletions rosco-bom/rosco-bom.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright 2020 Armory, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

apply plugin: "java-platform"
apply plugin: "maven-publish"

javaPlatform {
allowDependencies()
}


if (Boolean.valueOf(enablePublishing)) {
publishing {
publications {
nebula(MavenPublication) {
from components.javaPlatform
}
}
}
}

dependencies {
api(platform("com.netflix.spinnaker.kork:kork-bom:$korkVersion"))

constraints {
rootProject
.subprojects
.findAll { it != project }
.each { api(project(it.path)) }
}
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
rootProject.name = 'rosco'

include 'rosco-core', 'rosco-web', 'rosco-manifests'
include 'rosco-bom', 'rosco-core', 'rosco-web', 'rosco-manifests'

def setBuildFile(project) {
project.buildFileName = "${project.name}.gradle"
Expand Down

0 comments on commit 7f570d4

Please sign in to comment.