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

Merge 6.2.x into 7.0.x #441

Merged
merged 52 commits into from
Dec 9, 2024
Merged

Conversation

jamesfredley
Copy link
Contributor

@jamesfredley jamesfredley commented Dec 8, 2024

@matrei @jdaugherty I am confident in the changes coming over from #424 and their application to code that was not present on 6.2.x. This is the vast majority of this PR.

Since 6.2.x and 7.0.x branches had diverged significantly, please focus on your recent commits and verify that I chose correctly when addressing the merge conflicts and decided correctly for 7.0.x.

# Conflicts:
#	.github/workflows/mavenCentral.yml
#	.github/workflows/release.yml
#	.github/workflows/snapshot.yml
#	gradle.properties
#	grails-cli/src/test/groovy/org/grails/forge/cli/CommandSpec.groovy
#	grails-forge-core/src/main/java/org/grails/forge/build/dependencies/Dependency.java
#	grails-forge-core/src/main/java/org/grails/forge/build/dependencies/Scope.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/assetPipeline/AssetPipeline.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/Gradle.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/buildGradle.rocker.raw
#	grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/buildSrcBuildGradle.rocker.raw
#	grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/dependencies.rocker.raw
#	grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/settingsGradle.rocker.raw
#	grails-forge-core/src/main/java/org/grails/forge/feature/micronaut/MicronautInjectGroovy.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/other/MicronautHttpClient.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/test/GebWithWebDriverBinaries.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/view/Scaffolding.java
#	grails-forge-core/src/main/resources/pom.xml
#	grails-forge-core/src/test/groovy/org/grails/forge/build/gradle/GradleSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/asciidoctor/AsciidoctorSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/assetPipeline/AssetPipelineSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/database/HibernateGormSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/grails/GrailsGradlePluginSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/lang/GrailsApplicationSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/micronaut/MicronautHttpClientSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/micronaut/MicronautInjectGroovySpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/test/GebSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/view/GrailsGspSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/view/ScaffoldingSpec.groovy
#	test-core/src/test/groovy/org/grails/forge/features/scaffolding/ScaffoldingSpec.groovy

jamesfredley and others added 30 commits November 10, 2024 18:58
…ile optional features

when buildSrc feature is selected buildscript{} will not generate in main build.gradle file
…o features

instead of manually being set in dependencies.rocker.raw
remove dependencies.rocker.raw since it duplicates toSnippet()

rename RUNTIME to RUNTIME_ONLY, TEST to TEST_IMPLEMENTATION and
TEST_RUNTIME to TEST_RUNTIME_ONLY to reflect the actual Gradle scope
…e same as main build.gradle file

this is the only Gradle build dependency that is needed in buildSrc/build.gradle and not in buildscript{}
update to grails 6.2.2 and grails-gradle-plugin 6.2.3
Temporary measure to get a successful release workflow with an already published version.
# Conflicts:
#	gradle.properties
Temporary measure to get a successful release workflow with an already published version.
Update to grails 6.2.3-SNAPSHOT and grails-gradle-plugin 6.2.4-SNAPSHOT
jdaugherty and others added 16 commits November 25, 2024 15:08
Change to only prevent the deployment to Google Cloud Run.

We still want to the snapshot workflow to run as it builds, tests, publishes to sonatype ossrh, and uploads the built artifacts in the workflow summary.
#434)

Decouples the graalvm version used for compiling the grails-cli from the
java version used in the projects it creates.
Remove Automatic Snapshot Deployment to GCR for older versions
# Conflicts:
#	.github/workflows/mavenCentral.yml
#	.github/workflows/release.yml
#	.github/workflows/sdkman.yml
#	.github/workflows/snapshot.yml
#	grails-cli/build.gradle
#	grails-cli/src/main/java/org/grails/forge/cli/util/GrailsVersionProvider.java
#	grails-cli/src/test/groovy/org/grails/forge/cli/command/ApplicationCommandSpec.groovy
#	settings.gradle
# Conflicts:
#	.github/workflows/mavenCentral.yml
#	.github/workflows/release.yml
#	.github/workflows/sdkman.yml
#	.github/workflows/snapshot.yml
#	grails-forge-core/src/test/groovy/org/grails/forge/build/gradle/GradleSpec.groovy
#	settings.gradle
# Conflicts:
#	.github/workflows/mavenCentral.yml
#	.github/workflows/release.yml
#	.github/workflows/snapshot.yml
#	gradle.properties
#	grails-cli/src/test/groovy/org/grails/forge/cli/CommandSpec.groovy
#	grails-forge-core/src/main/java/org/grails/forge/build/dependencies/Dependency.java
#	grails-forge-core/src/main/java/org/grails/forge/build/dependencies/Scope.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/assetPipeline/AssetPipeline.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/Gradle.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/buildGradle.rocker.raw
#	grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/buildSrcBuildGradle.rocker.raw
#	grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/dependencies.rocker.raw
#	grails-forge-core/src/main/java/org/grails/forge/feature/build/gradle/templates/settingsGradle.rocker.raw
#	grails-forge-core/src/main/java/org/grails/forge/feature/micronaut/MicronautInjectGroovy.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/other/MicronautHttpClient.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/test/GebWithWebDriverBinaries.java
#	grails-forge-core/src/main/java/org/grails/forge/feature/view/Scaffolding.java
#	grails-forge-core/src/main/resources/pom.xml
#	grails-forge-core/src/test/groovy/org/grails/forge/build/gradle/GradleSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/asciidoctor/AsciidoctorSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/assetPipeline/AssetPipelineSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/database/HibernateGormSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/grails/GrailsGradlePluginSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/lang/GrailsApplicationSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/micronaut/MicronautHttpClientSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/micronaut/MicronautInjectGroovySpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/test/GebSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/view/GrailsGspSpec.groovy
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/view/ScaffoldingSpec.groovy
#	test-core/src/test/groovy/org/grails/forge/features/scaffolding/ScaffoldingSpec.groovy
String platformPrefix = " ";
snippet += platformPrefix + "platform";
snippet += "platform(";
} else if (gradleConfiguration == INTEGRATION_TEST_IMPLEMENTATION_TEST_FIXTURES) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

If we ever add another Gradle scope that requires () we will re-engineer this code at that time.

Copy link
Contributor

@jdaugherty jdaugherty left a comment

Choose a reason for hiding this comment

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

Spot checking this, it looks okay on the JDK version change. @matrei did most of the merges so I'd prefer he approve this one.

Copy link
Contributor

@matrei matrei left a comment

Choose a reason for hiding this comment

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

LGTM 👍

Comment on lines +30 to +34
}

// buildSrc tests fail occasionally without running clean first
build {
dependsOn clean
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is this code coming from. I can't find it, neither in 6.2.x or 7.0.x.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is technically new code that resolved an issue seen during the merge. It can also occur on 6.2.x, so I will commit it over there and then update this PR before merging.

Comment on lines 89 to +92
generatorContext.addDependency(Dependency.builder()
.groupId("org.grails.plugins")
.artifactId("views-json-templates")
.compile());
.implementation());
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure the views-json-templates dependency should be included by default with the views-json feature.
I think the templates in view-json-templates might only be relevant when using MongoDB.
But that can be the topic for another PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jamesfredley jamesfredley merged commit a92341a into 7.0.x Dec 9, 2024
11 checks passed
@jamesfredley jamesfredley deleted the merge-6.2.x-into-7.0.x-12-6-2024 branch December 9, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants