michaelin007 2024-01-15 18:57:48 +00:00
parent 797f1e1737
commit 7a1158484a
28 changed files with 71 additions and 0 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -10,6 +10,8 @@ allprojects {
subprojects { subprojects {
version = '1.0' version = '1.0'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
} }
apply plugin: 'eclipse' apply plugin: 'eclipse'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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