Merge pull request #15653 from Michaelin007/gradleissues
https://jira.baeldung.com/browse/BAEL-3205
This commit is contained in:
commit
4204652a27
|
@ -7,6 +7,8 @@ ext.javaMainClass = "com.baeldung.cmd.MainClass"
|
|||
application {
|
||||
mainClassName = javaMainClass
|
||||
}
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
task propertyTypes(){
|
||||
doLast{
|
||||
|
|
|
@ -5,6 +5,9 @@ ext {
|
|||
awsVersion = '2.20.83'
|
||||
}
|
||||
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
|
||||
dependencies {
|
||||
implementation platform("software.amazon.awssdk:bom:$awsVersion")
|
||||
|
|
|
@ -13,6 +13,8 @@ jar {
|
|||
)
|
||||
}
|
||||
}
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
application {
|
||||
mainClassName = javaMainClass
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -2,6 +2,9 @@ plugins {
|
|||
`java-platform`
|
||||
}
|
||||
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
dependencies {
|
||||
constraints {
|
||||
api("org.apache.httpcomponents:fluent-hc:4.5.10")
|
||||
|
|
|
@ -3,6 +3,9 @@ plugins {
|
|||
`maven-publish`
|
||||
}
|
||||
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
register<MavenPublication>("mavenJava") {
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -2,6 +2,9 @@ plugins {
|
|||
`java-library`
|
||||
}
|
||||
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
dependencies {
|
||||
api(platform(project(":httpclient-platform")))
|
||||
implementation("org.apache.httpcomponents:httpclient")
|
||||
|
|
|
@ -6,6 +6,8 @@ plugins {
|
|||
|
||||
group = "com.baeldung.gradle"
|
||||
version = "0.0.1-SNAPSHOT"
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
@ -4,6 +4,8 @@ plugins {
|
|||
|
||||
group = "com.baeldung.gradle"
|
||||
version = "0.0.1-SNAPSHOT"
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
@ -4,6 +4,8 @@ plugins {
|
|||
|
||||
group = "com.baeldung.gradle"
|
||||
version = "0.0.1-SNAPSHOT"
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
@ -4,6 +4,8 @@ plugins {
|
|||
|
||||
group = "com.baeldung.gradle"
|
||||
version = "0.0.1-SNAPSHOT"
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
@ -4,6 +4,8 @@ plugins {
|
|||
|
||||
group = "com.baeldung.gradle"
|
||||
version = "0.0.1-SNAPSHOT"
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
@ -4,6 +4,8 @@ plugins {
|
|||
|
||||
group 'org.example'
|
||||
version '1.0-SNAPSHOT'
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
javadoc {
|
||||
destinationDir = file("${buildDir}/docs/javadoc")
|
||||
|
|
|
@ -4,6 +4,8 @@ plugins {
|
|||
|
||||
group = 'org.baeldung'
|
||||
version = '1.0-SNAPSHOT'
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
|
|
|
@ -3,6 +3,9 @@ plugins {
|
|||
id 'com.github.bjornvester.wsdl2java' version '2.0.2'
|
||||
}
|
||||
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
|
|
@ -5,6 +5,8 @@ plugins {
|
|||
|
||||
group = "com.baeldung.gradle"
|
||||
version = "1.0.0-SNAPSHOT"
|
||||
sourceCompatibility = "1.8"
|
||||
targetCompatibility = "1.8"
|
||||
|
||||
repositories {
|
||||
mavenLocal()
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -13,6 +13,9 @@ plugins {
|
|||
id 'java'
|
||||
}
|
||||
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
|
@ -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')
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -7,3 +7,8 @@ dependencies {
|
|||
exclude module : 'groovy-all'
|
||||
}
|
||||
}
|
||||
|
||||
java {
|
||||
sourceCompatibility = JavaVersion.VERSION_1_8
|
||||
targetCompatibility = JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue