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

Update dependency gradle.plugin.com.github.johnrengelman:shadow to v8 - autoclosed #103

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
commit_user_email: ${{ env.GIT_USER_EMAIL }}
commit_author: ${{ env.GIT_USER_NAME }} <${{ env.GIT_USER_EMAIL }}>
file_pattern: .
branch: 6.2.x
branch: 7.0.x
- name: "⚙️ Run pre-release"
uses: micronaut-projects/github-actions/pre-release@master
with:
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
env:
BETA: ${{ contains(steps.release_version.outputs.value, 'M') }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
BASE_BRANCH: 6.2.x
BASE_BRANCH: 7.0.x
BRANCH: gh-pages
FOLDER: build/docs
VERSION: ${{ steps.release_version.outputs.value }}
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ jobs:
cp ./LICENSE grails-linux-amd64-snapshot/
zip -r grails-linux-amd64-snapshot.zip ./grails-linux-amd64-snapshot
- name: Upload Snapshot
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/6.2.x'
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/7.0.x'
uses: actions/upload-artifact@v4
with:
name: grails-linux-amd64-snapshot
Expand Down Expand Up @@ -212,7 +212,7 @@ jobs:
cp ./LICENSE grails-darwin-amd64-snapshot/
zip -r grails-darwin-amd64-snapshot.zip ./grails-darwin-amd64-snapshot -x '*.DS_Store*' -x '__MAC_OSX'
- name: "📤 Upload Snapshot"
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/6.2.x'
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/7.0.x'
uses: actions/upload-artifact@v4
with:
name: grails-darwin-amd64-snapshot
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
cp ./LICENSE grails-darwin-aarch64-snapshot/
zip -r grails-darwin-aarch64-snapshot.zip grails-darwin-aarch64-snapshot/ -x '*.DS_Store*' -x '__MAC_OSX'
- name: "📤 Upload Snapshot"
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/6.2.x'
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/7.0.x'
uses: actions/upload-artifact@v4
with:
name: grails-darwin-aarch64-snapshot
Expand Down Expand Up @@ -292,7 +292,7 @@ jobs:
Copy-Item "./LICENSE" -Destination "./grails-win-amd64-snapshot"
Compress-Archive -Path "./grails-win-amd64-snapshot" -Update -DestinationPath ./grails-win-amd64-snapshot.zip
- name: "📤 Publish artifact"
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/6.2.x'
if: success() && github.event_name == 'push' && github.ref == 'refs/heads/7.0.x'
uses: actions/upload-artifact@v4
with:
name: grails-win-amd64-snapshot
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ dependencies {
implementation "org.asciidoctor:asciidoctor-gradle-jvm:4.0.3"
implementation "com.diffplug.spotless:spotless-plugin-gradle:6.25.0"
implementation "io.spring.nohttp:nohttp-gradle:0.0.11"
implementation "gradle.plugin.com.github.johnrengelman:shadow:7.1.2"
implementation "gradle.plugin.com.github.johnrengelman:shadow:8.0.0"
implementation "io.github.gradle-nexus:publish-plugin:1.3.0"
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
projectVersion=6.2.1-SNAPSHOT
projectVersion=7.0.0-SNAPSHOT
micronautBuildVersion=1.1.5
micronautDocsVersion=2.0.0
micronautVersion=3.10.4
Expand All @@ -10,7 +10,7 @@ title=Grails Application Forge
projectDesc=Generates Grails applications
projectUrl=https://grails.org
githubSlug=grails/grails-forge
githubBranch=6.2.x
githubBranch=7.0.x
developers=Puneet Behl
org.gradle.parallel=true
org.gradle.caching=true
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017-2020 original authors
* Copyright 2017-2024 original authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -60,10 +60,15 @@ public boolean shouldApply(ApplicationType applicationType, Options options, Set
public void apply(GeneratorContext generatorContext) {
OperatingSystem operatingSystem = generatorContext.getOperatingSystem();
boolean jansi = false;

if (operatingSystem != OperatingSystem.WINDOWS) {
jansi = true;
}
generatorContext.addTemplate("loggingConfig", new RockerTemplate("grails-app/conf/logback.xml", logback.template(jansi)));

String projectName = generatorContext.getProject().getName();
String packageName = generatorContext.getProject().getPackageName();

generatorContext.addTemplate("loggingConfig", new RockerTemplate("grails-app/conf/logback-spring.xml", logback.template(projectName, packageName, jansi)));
generatorContext.addDependency(Dependency.builder()
.groupId("org.grails")
.artifactId("grails-logging")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,21 +1,41 @@
@args (boolean jansi)
@args (String projectName, String packageName, boolean jansi)

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<include resource="org/springframework/boot/logging/logback/defaults.xml"/>

<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" />
<conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" />

<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender">
<withJansi>@jansi</withJansi>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>${CONSOLE_LOG_THRESHOLD}</level>
</filter>
<encoder>
<charset>UTF-8</charset>
<pattern>%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(%5p) %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n%wex</pattern>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
<charset>${CONSOLE_LOG_CHARSET}</charset>
</encoder>
</appender>

<root level="error">
<appender-ref ref="STDOUT" />
<root level="ERROR">
<appender-ref ref="CONSOLE"/>
</root>

<springProfile name="development">
<logger name="StackTrace" level="ERROR" additivity="false" />

<!-- <logger name="@packageName" level="DEBUG"/>-->

<!-- <logger name="org.hibernate.SQL" level="DEBUG"/>-->
<!-- <logger name="org.hibernate.type.descriptor.sql.BasicBinder" level="TRACE"/>-->
<!-- <logger name="org.springframework.security" level="TRACE"/>-->

<!-- <root level="WARN"/>-->
</springProfile>

<!-- logging to a file-->
<!-- <property name="LOG_FILE" value="${LOG_FILE:-${LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}/}spring.log}"/>-->
<!-- <include resource="org/springframework/boot/logging/logback/file-appender.xml" />-->
<!-- <root level="ERROR">-->
<!-- <appender-ref ref="FILE" />-->
<!-- </root>-->
<!-- add logging.file.name to application.yml-->
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ class LogbackSpec extends ApplicationContextSpec implements CommandOutputFixture
}

@Unroll
void "test logback.xml config file is present for #applicationType application"() {
void "test logback-spring.xml config file is present for #applicationType application"() {
when:
def output = generate(applicationType, new Options(TestFramework.SPOCK, JdkVersion.JDK_11))

then:
output.containsKey("grails-app/conf/logback.xml")
output.containsKey("grails-app/conf/logback-spring.xml")

where:
applicationType << ApplicationType.values().toList()
Expand Down
Loading