Skip to content

Commit

Permalink
SONARGO-52 Create a new repository for common Gradle scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
petertrr committed Dec 10, 2024
1 parent b186fe4 commit 9d881cb
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 21 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@
[submodule "its/sources/kubernetes-client-go"]
path = its/sources/kubernetes-client-go
url = https://github.com/kubernetes/client-go
[submodule "build-logic"]
path = build-logic
url = https://github.com/SonarSource/cloud-native-gradle-modules
16 changes: 0 additions & 16 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,6 @@ subprojects {

apply plugin: 'com.diffplug.spotless'

java.sourceCompatibility = JavaVersion.VERSION_17
tasks.withType(JavaCompile) {
options.encoding = "UTF-8"
options.release = java.sourceCompatibility.majorVersion as int
}

jacoco {
toolVersion = "0.8.7"
}
Expand Down Expand Up @@ -115,16 +109,6 @@ subprojects {
}
}

task sourcesJar(type: Jar, dependsOn: classes) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

// license updater
spotless {
java {
Expand Down
4 changes: 4 additions & 0 deletions its/plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id("org.sonarsource.cloudnative.java-conventions")
}

dependencies {
testImplementation libs.sonar.analyzer.commons
testImplementation testLibs.sonar.ws
Expand Down
4 changes: 4 additions & 0 deletions its/ruling/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
plugins {
id("org.sonarsource.cloudnative.java-conventions")
}

dependencies {
testImplementation libs.sonar.analyzer.commons
testImplementation testLibs.assertj.core
Expand Down
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
pluginManagement {
includeBuild("build-logic")
repositories {
mavenCentral()
gradlePluginPortal()
Expand Down
6 changes: 1 addition & 5 deletions sonar-go-plugin/build.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
plugins {
id("org.sonarsource.cloudnative.java-conventions")
id 'com.github.johnrengelman.shadow' version '7.1.0'
}

Expand Down Expand Up @@ -30,11 +31,6 @@ dependencies {
testRuntimeOnly testLibs.junit.jupiter.engine
}

tasks.withType(JavaCompile) {
// Prevent warning: Gradle 5.0 will ignore annotation processors
options.compilerArgs += [ "-proc:none" ]
}

test {
testLogging {
exceptionFormat 'full' // log the full stack trace (default is the 1st line of the stack trace)
Expand Down

0 comments on commit 9d881cb

Please sign in to comment.