Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set mainClass as optional, fix samples to be usable standalone #113

Merged
merged 1 commit into from
Aug 9, 2021

Conversation

lazar-mitrovic
Copy link
Collaborator

Before this commit if mainClass was missing, Gradle plugin would abort the build.
This is wrong since mainClass isn't required for building shared libraries (also,
mainClass can be defined using properties file). This change fixes #108

Second change that is introduced in this commit fixes issue #105

build.gradle.kts Outdated Show resolved Hide resolved
Copy link
Collaborator

@sdeleuze sdeleuze left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me with my additional comments on formatting and after clarifying with @melix the mavenLocal(), I admit I added it as well locally for my gradle publishToMavenLocal but I guess he has another workflow to recommend.

@@ -93,7 +93,7 @@ class JavaApplicationWithAgentFunctionalTest extends AbstractFunctionalTest {
@Unroll("agent property takes precedence on Gradle #version with JUnit Platform #junitVersion")
def "agent property takes precedence"() {
gradleVersion = version

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can rollback for cleaner diff that would be great.

@@ -50,7 +50,7 @@ class KotlinApplicationWithTestsFunctionalTest extends AbstractFunctionalTest {
@Unroll("can execute Kotlin tests in a native image directly on Gradle #version with JUnit Platform #junitVersion")
def "can execute Kotlin tests in a native image directly"() {
gradleVersion = version

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you can rollback for cleaner diff that would be great.

Before this commit if mainClass was missing, Gradle plugin would abort the build.
This is wrong since mainClass isn't required for building shared libraries (also,
mainClass can be defined using properties file). This change fixes #108

Second change that is introduced in this commit fixes issue #105
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Regression: mainClass property should not be mandatory Ensure that samples work out-of-the-box
4 participants