-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#71] add property to better configure if source artefacts are created (
#72) Signed-off-by: Clemens Grabmann <[email protected]>
- Loading branch information
Showing
11 changed files
with
86 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
src/test/fixtures/java/single-java-module-library-no-sources/build.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
plugins { | ||
id "io.cloudflight.autoconfigure.java-configure" | ||
} | ||
|
||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
description "Cloudflight Gradle Test" | ||
group "io.cloudflight.gradle" | ||
version "1.0.0" | ||
|
||
javaConfigure { | ||
applicationBuild = false | ||
languageVersion = JavaLanguageVersion.of(8) | ||
encoding = "UTF-8" | ||
vendorName = "Cloudflight XYZ" | ||
createSourceArtifacts = false | ||
} | ||
|
||
dependencies { | ||
testImplementation("org.junit.jupiter:junit-jupiter-api:5.8.1") | ||
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.8.1") | ||
} | ||
|
||
tasks.getByName(JavaPlugin.COMPILE_JAVA_TASK_NAME).doLast { | ||
def javaPluginExtension = project.extensions.getByType(JavaPluginExtension) | ||
logger.quiet("javaPluginExtension.modularity.inferModulePath: {}", javaPluginExtension.modularity.inferModulePath.get()) | ||
logger.quiet("javaPluginExtension.sourceCompatibility: {}", javaPluginExtension.sourceCompatibility) | ||
logger.quiet("javaPluginExtension.targetCompatibility: {}", javaPluginExtension.targetCompatibility) | ||
logger.quiet("compileJava.options.encoding: {}", options.encoding) | ||
} | ||
|
||
tasks.getByName(JavaPlugin.COMPILE_TEST_JAVA_TASK_NAME).doLast { | ||
logger.quiet("compileTestJava.options.encoding: {}", options.encoding) | ||
} |
1 change: 1 addition & 0 deletions
1
src/test/fixtures/java/single-java-module-library-no-sources/settings.gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rootProject.name = 'single-java-module-library-no-sources' |
4 changes: 4 additions & 0 deletions
4
...s/java/single-java-module-library-no-sources/src/main/java/io/cloudflight/gradle/Foo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package io.cloudflight.gradle; | ||
|
||
public class Foo { | ||
} |
9 changes: 9 additions & 0 deletions
9
...va/single-java-module-library-no-sources/src/test/java/io/cloudflight/gradle/FooTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
import org.junit.jupiter.api.Test; | ||
|
||
public class FooTest { | ||
@Test | ||
public void test() { | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters