Merge pull request #15653 from Michaelin007/gradleissues

https://jira.baeldung.com/browse/BAEL-3205
This commit is contained in:
Maiklins 2024-01-18 22:24:12 +01:00 committed by GitHub
commit 4204652a27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
29 changed files with 76 additions and 2 deletions

View File

@ -7,6 +7,8 @@ ext.javaMainClass = "com.baeldung.cmd.MainClass"
application {
mainClassName = javaMainClass
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
task propertyTypes(){
doLast{

View File

@ -5,6 +5,9 @@ ext {
awsVersion = '2.20.83'
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
dependencies {
implementation platform("software.amazon.awssdk:bom:$awsVersion")

View File

@ -13,6 +13,8 @@ jar {
)
}
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
application {
mainClassName = javaMainClass

View File

@ -3,6 +3,9 @@ apply plugin: "eclipse"
apply plugin: "java"
description = "Source Sets example"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
task printSourceSetInformation(){
description = "Print source set information"

View File

@ -1,6 +1,9 @@
description = "Gradle Unused Dependencies example"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
dependencies {
implementation('com.google.guava:guava:29.0-jre')
implementation('org.apache.httpcomponents:httpclient:4.5.12')

View File

@ -4,6 +4,8 @@ plugins {
group = "com.baeldung"
version = "1.0.0"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
dependencies {
api("io.reactivex.rxjava2:rxjava:2.2.16")

View File

@ -2,6 +2,9 @@ plugins {
`java-library`
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
dependencies {
api(project(":fibonacci-spi"))
compileOnly("com.google.auto.service:auto-service-annotations:1.0-rc6")

View File

@ -3,6 +3,9 @@ plugins {
`java-test-fixtures`
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
dependencies {
testFixturesApi("org.junit.jupiter:junit-jupiter-api:5.5.2")
testFixturesImplementation("org.junit.jupiter:junit-jupiter-engine:5.5.2")

View File

@ -2,6 +2,9 @@ plugins {
`java-platform`
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
dependencies {
constraints {
api("org.apache.httpcomponents:fluent-hc:4.5.10")

View File

@ -3,6 +3,9 @@ plugins {
`maven-publish`
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
publishing {
publications {
register<MavenPublication>("mavenJava") {

View File

@ -2,6 +2,9 @@ plugins {
`java-library`
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
dependencies {
api(platform(project(":httpclient-platform")))
implementation("org.apache.httpcomponents:fluent-hc")

View File

@ -2,6 +2,9 @@ plugins {
`java-library`
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
dependencies {
api(platform(project(":httpclient-platform")))
implementation("org.apache.httpcomponents:httpclient")

View File

@ -6,6 +6,8 @@ plugins {
group = "com.baeldung.gradle"
version = "0.0.1-SNAPSHOT"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenCentral()

View File

@ -4,6 +4,8 @@ plugins {
group = "com.baeldung.gradle"
version = "0.0.1-SNAPSHOT"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenCentral()

View File

@ -4,6 +4,8 @@ plugins {
group = "com.baeldung.gradle"
version = "0.0.1-SNAPSHOT"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenCentral()

View File

@ -4,6 +4,8 @@ plugins {
group = "com.baeldung.gradle"
version = "0.0.1-SNAPSHOT"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenCentral()

View File

@ -4,6 +4,8 @@ plugins {
group = "com.baeldung.gradle"
version = "0.0.1-SNAPSHOT"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenCentral()

View File

@ -4,6 +4,8 @@ plugins {
group 'org.example'
version '1.0-SNAPSHOT'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
javadoc {
destinationDir = file("${buildDir}/docs/javadoc")

View File

@ -4,6 +4,8 @@ plugins {
group = 'org.baeldung'
version = '1.0-SNAPSHOT'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenCentral()

View File

@ -3,6 +3,9 @@ plugins {
id 'com.github.bjornvester.wsdl2java' version '2.0.2'
}
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenCentral()
}

View File

@ -5,6 +5,8 @@ plugins {
group = "com.baeldung.gradle"
version = "1.0.0-SNAPSHOT"
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
repositories {
mavenLocal()

View File

@ -6,8 +6,8 @@ plugins {
apply plugin: 'application'
mainClassName = 'employee.EmployeeApp'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
println 'This is executed during configuration phase'

View File

@ -13,6 +13,9 @@ plugins {
id 'java'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
}

View File

@ -10,6 +10,8 @@ group = 'com.baeldung'
// by default, pom's artifactId is taken from the directory name
version = '0.0.1'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
implementation 'org.slf4j:slf4j-api:1.7.25'

View File

@ -13,6 +13,9 @@ plugins {
id 'java'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
apply from: 'aplugin.gradle'
apply plugin: 'org.shipkit.bintray-release'

View File

@ -1,6 +1,9 @@
apply plugin : 'java'
apply plugin : 'application'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
implementation project(':greeting-library')
implementation project(':greeting-library-java')

View File

@ -1,6 +1,9 @@
apply plugin :'java'
//apply plugin : 'application'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies{
implementation group: 'joda-time', name: 'joda-time', version: '2.9.9'
testImplementation group: 'junit', name: 'junit', version: '4.12'

View File

@ -7,3 +7,8 @@ dependencies {
exclude module : 'groovy-all'
}
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}

View File

@ -3,6 +3,9 @@ plugins {
id 'java-library'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'