Skip to content

Commit

Permalink
Merge branch '6.2.x' into merge-6.2.x-into-7.0.x-11-1-2024
Browse files Browse the repository at this point in the history
asset-pipeline changes were not needed, since asset-pipeline-gradle 5.0.x defaults to skipNonDigests = true

# Conflicts:
#	grails-forge-core/src/test/groovy/org/grails/forge/feature/grailsWrapper/GrailsWrapperSpec.groovy
  • Loading branch information
jamesfredley committed Nov 1, 2024
2 parents 060f525 + 8cf161f commit 27c26d4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 41 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,21 @@
import org.grails.forge.application.ApplicationType;
import org.grails.forge.application.OperatingSystem;
import org.grails.forge.application.generator.GeneratorContext;
import org.grails.forge.feature.Category;
import org.grails.forge.feature.DefaultFeature;
import org.grails.forge.feature.Feature;
import org.grails.forge.options.Options;
import org.grails.forge.template.BinaryTemplate;

import java.util.Set;

@Singleton
public class GrailsWrapper implements GrailsWrapperFeature {
public class GrailsWrapper implements DefaultFeature {

@Override
public boolean shouldApply(ApplicationType applicationType, Options options, Set<Feature> selectedFeatures) {
return true;
}

@Override
public String getName() {
Expand All @@ -41,7 +52,7 @@ public String getDescription() {

@Override
public boolean isVisible() {
return true;
return false;
}

@Override
Expand All @@ -59,4 +70,9 @@ public void apply(GeneratorContext generatorContext) {
public boolean supports(ApplicationType applicationType) {
return true;
}

@Override
public String getCategory() {
return Category.DEV_TOOLS;
}
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class GrailsWrapperSpec extends ApplicationContextSpec implements CommandOutputF
@Unroll
void "test grails-wrapper.jar, grailsw and grailsw.bat files are present for #applicationType application"() {
when:
def output = generate(applicationType, new Options(TestFramework.SPOCK), ['grails-wrapper'])
def output = generate(applicationType, new Options(TestFramework.SPOCK))

then:
output.containsKey("grails-wrapper.jar")
Expand Down

0 comments on commit 27c26d4

Please sign in to comment.