Skip to content

Commit 827e343

Browse files
committed
Merge branch '3.0.x'
2 parents a0058b8 + df16bfa commit 827e343

File tree

7 files changed

+19
-16
lines changed

7 files changed

+19
-16
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ After pushing these changes to the repository you must wait for [the build](http
6262

6363
The [Travis CI](https://travis-ci.org/grails/grails-core) build will automatically upload the tagged release to Github and be available of the [Releases page](https://github.com/grails/grails-core/releases).
6464

65-
Note: Although by default Grails uses Artefactory to resolve dependencies, it is useful to have them in Maven Central too. To ensure they go to Maven Central login to [Sonatype OSS Nexus](https://oss.sonatype.org) with your account details then "Close" and "Release" the staged JAR files.
66-
6765
License
6866
---
6967

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ buildscript {
1212
classpath "com.netflix.nebula:gradle-extra-configurations-plugin:2.2.0"
1313
classpath "com.github.adrianbk:gradle-travisci-trigger-plugin:1.0.0"
1414
classpath 'com.bmuschko:gradle-nexus-plugin:2.3'
15+
classpath "io.codearte.gradle.nexus:gradle-nexus-staging-plugin:0.5.3"
1516
classpath 'net.gvmtool:gradle-sdkvendor-plugin:0.3.1'
1617
}
1718
}
1819

1920
apply plugin: 'idea'
2021

22+
2123
ext {
2224
bintrayPublish = false
2325
// Sets release version
@@ -65,6 +67,8 @@ ext {
6567
}
6668

6769
version = grailsVersion
70+
group = "org.grails"
71+
apply plugin: 'io.codearte.nexus-staging'
6872

6973
// directories created during the build which are related
7074
// to turning the workspace root into a GRAILS_HOME

gradle/assemble.gradle

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ def libsConfigurations = []
66
subprojects { subproject ->
77
if(subproject.name == 'grails-dependencies') return
88
if(subproject.name == 'grails-bom') return
9-
configurations {
10-
libsConfigurations << libs {
11-
extendsFrom compile, runtime
12-
["jsp21", "uaa"].collect { configurations.findByName(it) }.findAll { it != null }.each { extendsFrom it }
9+
if(subproject.name == 'grails-shell') {
10+
11+
configurations {
12+
libsConfigurations << libs {
13+
extendsFrom compile, runtime
14+
["jsp21", "uaa"].collect { configurations.findByName(it) }.findAll { it != null }.each { extendsFrom it }
15+
}
1316
}
1417
}
1518
}

grails-plugin-converters/src/main/groovy/grails/converters/JSON.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,8 @@ private void finalizeRender(Writer out) {
116116
*/
117117
public void render(Writer out) throws ConverterException {
118118
prepareRender(out);
119-
try {
120-
value(target);
121-
}
122-
finally {
123-
finalizeRender(out);
124-
}
119+
value(target);
120+
finalizeRender(out);
125121
}
126122

127123
/**

grails-plugin-converters/src/main/groovy/grails/converters/XML.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,12 @@ public void render(Writer out) throws ConverterException {
128128
writer.startNode(getElementName(target));
129129
convertAnother(target);
130130
writer.end();
131+
finalizeRender(out);
131132
}
132133
catch (Exception e) {
133134
throw new ConverterException(e);
134135
}
135136
finally {
136-
finalizeRender(out);
137137
isRendering = false;
138138
}
139139
}

grails-web-taglib/src/main/groovy/org/grails/web/taglib/encoder/WebOutputContextLookup.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
import org.grails.web.servlet.mvc.GrailsWebRequest;
2727
import org.grails.web.taglib.WebRequestTemplateVariableBinding;
2828
import org.grails.web.util.GrailsApplicationAttributes;
29+
import org.grails.web.util.WebUtils;
2930
import org.springframework.core.Ordered;
3031
import org.springframework.web.context.request.RequestAttributes;
3132

@@ -105,8 +106,9 @@ public void setContentType(String contentType) {
105106

106107
@Override
107108
public boolean isContentTypeAlreadySet() {
108-
HttpServletResponse response = lookupResponse();
109-
return response.isCommitted() || response.getContentType() != null;
109+
GrailsWebRequest webRequest = lookupWebRequest();
110+
HttpServletResponse response = webRequest.getResponse();
111+
return response.isCommitted() || (response.getContentType() != null && webRequest.getRequest().getAttribute(WebUtils.ERROR_EXCEPTION_ATTRIBUTE) == null);
110112
}
111113

112114
protected GrailsWebRequest lookupWebRequest() {

travis-build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ if [[ $TRAVIS_PULL_REQUEST == 'false' && $EXIT_STATUS -eq 0
5858
echo "Running Gradle publish for branch $TRAVIS_BRANCH"
5959

6060
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
61-
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" publish uploadArchives || EXIT_STATUS=$?
61+
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" publish uploadArchives closeAndPromoteRepository || EXIT_STATUS=$?
6262
./gradlew assemble || EXIT_STATUS=$?
6363

6464
# Configure GIT

0 commit comments

Comments
 (0)