Skip to content
This repository was archived by the owner on Oct 31, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@ repositories {
mavenLocal()
}

apply from: 'opencadc.gradle'

sourceCompatibility = 11

group = 'org.opencadc'

version = '2.4'
version = '2.5'

jar {
enabled = true
Expand Down Expand Up @@ -54,5 +55,5 @@ dependencies {
testImplementation 'junit:junit:4.13'
}

apply from: 'opencadc.gradle'


320 changes: 115 additions & 205 deletions generated.tex

Large diffs are not rendered by default.

32 changes: 23 additions & 9 deletions opencadc.gradle
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
configurations {
checkstyleDep
intTestCompile.extendsFrom testCompile
intTestRuntime.extendsFrom testRuntime
intTestImplementation.extendsFrom testImplementation

runtime.exclude module: 'slf4j-reload4j'
runtime.exclude module: 'reload4j'
}

dependencies {
testCompile 'com.puppycrawl.tools:checkstyle:8.2'
testImplementation 'com.puppycrawl.tools:checkstyle:8.2'
checkstyleDep 'org.opencadc:cadc-quality:[1.0,)'
}

Expand All @@ -17,22 +19,18 @@ checkstyle {
}

sourceSets {
test {
resources.srcDirs += 'src/test/resources'
}
intTest {
java {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
runtimeClasspath += compileClasspath
}
resources.srcDir file('src/intTest/resources')
resources.srcDirs += file('src/intTest/resources')
resources.srcDirs += new File(System.getenv('A') + '/test-certificates/')
}
}

// Temporary work around for issue https://github.com/gradle/gradle/issues/881 -
// gradle not displaying fail build status when warnings reported -->

tasks.withType(Checkstyle).each { checkstyleTask ->
checkstyleTask.doLast {
reports.all { report ->
Expand Down Expand Up @@ -76,3 +74,19 @@ intTest {
// "STARTED",
}
}

pluginManager.withPlugin('maven-publish') {
// configure maven-publish to support publishToMavenLocal
publishing {
publications {
thisLibrary(MavenPublication) {
from components.java
}
}
}
}

// backwards compat usage
task install {
dependsOn 'publishToMavenLocal'
}
Loading