Skip to content

Commit 2801a66

Browse files
committed
Merge branch 'integration/uplift-2025' into metadataRename
2 parents 7ede832 + ddddf2c commit 2801a66

27 files changed

+447
-374
lines changed

Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
22

33
gem 'bugsnag-maze-runner', '~>9.0'
44
gem 'os'
5+
# Pin power_assert to avoid compatibility issues with test-unit
6+
gem 'power_assert', '< 3.0.0'

bugsnag-spring/build.gradle

Lines changed: 0 additions & 53 deletions
This file was deleted.

bugsnag-spring/build.gradle.kts

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
plugins {
2+
`java-library`
3+
}
4+
5+
repositories {
6+
mavenCentral()
7+
}
8+
9+
java {
10+
withJavadocJar()
11+
toolchain {
12+
languageVersion.set(JavaLanguageVersion.of(17))
13+
}
14+
}
15+
16+
val sourceJar by tasks.registering(Jar::class) {
17+
from(sourceSets.main.get().allJava)
18+
}
19+
20+
// do not move this higher - sourceJar must be registered before we apply common.gradle.kts
21+
apply(from = "../common.gradle.kts")
22+
23+
dependencies {
24+
implementation(project(":bugsnag"))
25+
26+
implementation(libs.logback.core)
27+
implementation(libs.slf4j.api)
28+
29+
implementation(libs.jakarta.servlet.api)
30+
implementation(libs.spring.webmvc)
31+
implementation(libs.springBoot3.boot)
32+
implementation(libs.spring.aop)
33+
34+
testImplementation(project(":bugsnag").dependencyProject.sourceSets["test"].output)
35+
testImplementation(project(":bugsnag"))
36+
testImplementation(libs.junit)
37+
testImplementation(libs.springBoot3.starter.test)
38+
testImplementation(libs.springBoot3.starter.web)
39+
testImplementation(libs.junit.jupiter)
40+
testCompileOnly(libs.mockito.core.legacy)
41+
}
42+
43+
/** ---- Publishing config ----
44+
* Pulls in publishing+signing rules from the shared release.gradle.kts.
45+
* This will create tasks like:
46+
* :bugsnag:publishMavenJavaPublicationToTestRepository
47+
* :bugsnag:publishMavenJavaPublicationToOssrhStagingRepository
48+
*/
49+
apply(from = "${rootProject.projectDir}/release.gradle.kts")
50+

bugsnag/build.gradle

Lines changed: 0 additions & 59 deletions
This file was deleted.

bugsnag/build.gradle.kts

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
plugins {
2+
alias(libs.plugins.license)
3+
`java-library`
4+
}
5+
6+
apply(from = "../common.gradle.kts")
7+
8+
java {
9+
toolchain {
10+
languageVersion.set(JavaLanguageVersion.of(17))
11+
}
12+
}
13+
14+
repositories {
15+
mavenCentral()
16+
}
17+
18+
dependencies {
19+
api(libs.jackson.databind)
20+
api(libs.slf4j.api)
21+
compileOnly(libs.jakarta.servlet.api)
22+
compileOnly(libs.logback.classic) {
23+
exclude(group = "org.slf4j")
24+
}
25+
26+
testImplementation(libs.junit)
27+
testImplementation(libs.log4j.over.slf4j)
28+
testImplementation(libs.jakarta.servlet.api)
29+
testImplementation(libs.mockito.core)
30+
testImplementation(libs.logback.classic) {
31+
exclude(group = "org.slf4j")
32+
}
33+
}
34+
35+
// license checking
36+
configure<nl.javadude.gradle.plugins.license.LicenseExtension> {
37+
header = rootProject.file("LICENSE")
38+
isIgnoreFailures = true
39+
}
40+
41+
tasks.named("downloadLicenses") {
42+
// Note: dependencyConfiguration property needs to be set through the plugin's DSL
43+
// This may require checking the plugin documentation for Kotlin DSL syntax
44+
}
45+
46+
java {
47+
withJavadocJar()
48+
}
49+
50+
/** ---- Publishing config ----
51+
* Pulls in publishing+signing rules from the shared release.gradle.kts.
52+
* This will create tasks like:
53+
* :bugsnag:publishMavenJavaPublicationToTestRepository
54+
* :bugsnag:publishMavenJavaPublicationToOssrhStagingRepository
55+
*/
56+
apply(from = "${rootProject.projectDir}/release.gradle.kts")
57+

build.gradle renamed to build.gradle.kts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@ buildscript {
88
}
99

1010
gradle.projectsEvaluated {
11-
tasks.withType(JavaCompile) {
11+
tasks.withType<JavaCompile>().configureEach {
1212
// fail build on warnings, disable options complaining about Java 6 compatibility when building with JDK 7+
13-
options.compilerArgs << "-Xlint:all" << "-Werror" << "-Xlint:-options"
13+
options.compilerArgs.addAll(listOf("-Xlint:all", "-Werror", "-Xlint:-options"))
1414
}
1515
}
1616

17-
tasks.register('publishToTestRepoAll') {
18-
dependsOn subprojects.collect {
19-
tasks.findByPath("${it.path}:publishAllPublicationsToTestRepository") ?: []
20-
}.flatten()
21-
}
17+
tasks.register("publishToTestRepoAll") {
18+
dependsOn(subprojects.mapNotNull {
19+
tasks.findByPath("${it.path}:publishAllPublicationsToTestRepository")
20+
})
21+
}
22+

common.gradle

Lines changed: 0 additions & 28 deletions
This file was deleted.

common.gradle.kts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Version catalog is now used - see gradle/libs.versions.toml
2+
apply(plugin = "checkstyle")
3+
4+
if (project.hasProperty("releasing") && project.depth <= 1) {
5+
apply(from = "../release.gradle.kts")
6+
}
7+
tasks.named<Test>("test") {
8+
testLogging {
9+
events("passed", "skipped", "failed", "standardOut", "standardError")
10+
}
11+
}
12+
13+
configure<org.gradle.api.plugins.quality.CheckstyleExtension> {
14+
toolVersion = "8.18"
15+
configFile = file("${rootDir}/config/checkstyle/checkstyle.xml")
16+
}

docker-compose.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ services:
99
dockerfile: dockerfiles/Dockerfile.java-common
1010
volumes:
1111
- .:/app
12-
java8-mazerunner:
13-
build:
14-
context: .
15-
dockerfile: dockerfiles/Dockerfile.java8-mazerunner
16-
volumes:
17-
- .:/app
1812
java17-mazerunner:
1913
build:
2014
context: .

dockerfiles/Dockerfile.java-common

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y zip
99
COPY gradlew gradle.properties /app/
1010
COPY gradle/ /app/gradle/
1111
ENV GRADLE_OPTS="-Dorg.gradle.daemon=false"
12-
COPY settings.gradle /app/
12+
COPY settings.gradle.kts /app/
1313
RUN ./gradlew

0 commit comments

Comments
 (0)