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 {
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

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

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

@ -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'