build.gradle (grails-doc-4.0.10) | : | build.gradle (grails-doc-4.0.11) | ||
---|---|---|---|---|
skipping to change at line 35 | skipping to change at line 35 | |||
apply plugin: "base" | apply plugin: "base" | |||
apply plugin: "org.grails.grails-gdoc-to-asciidoc" | apply plugin: "org.grails.grails-gdoc-to-asciidoc" | |||
version = project.getProperty("grails.version") | version = project.getProperty("grails.version") | |||
archivesBaseName = "grails-docs" | archivesBaseName = "grails-docs" | |||
ext.checkOutDir = "${buildDir.path}/checkout" | ext.checkOutDir = "${buildDir.path}/checkout" | |||
ext.outputDir = "${buildDir.path}/docs" | ext.outputDir = "${buildDir.path}/docs" | |||
ext.githubBranch = "master" | ext.githubBranch = project.hasProperty("githubBranch") ? project.getProperty("gi thubBranch") : "4.0.x" | |||
ext.guidePage = "/docs/guide/single.html" | ext.guidePage = "/docs/guide/single.html" | |||
ext.indexPage = "/docs/index.html" | ext.indexPage = "/docs/index.html" | |||
ext.explicitGrailsHome = System.getProperty("grails.home") ?: (project.hasProper ty('grails.home') ? project.getProperty("grails.home") : null) | ext.explicitGrailsHome = System.getProperty("grails.home") ?: (project.hasProper ty('grails.home') ? project.getProperty("grails.home") : null) | |||
ext.grailsHome = explicitGrailsHome ? file(explicitGrailsHome).absolutePath : "$ checkOutDir/grails-src" | ext.grailsHome = explicitGrailsHome ? file(explicitGrailsHome).absolutePath : "$ checkOutDir/grails-src" | |||
ext.projectVersion = project.version | ext.projectVersion = project.version | |||
configurations { | configurations { | |||
publish | publish | |||
} | } | |||
skipping to change at line 84 | skipping to change at line 84 | |||
doLast { | doLast { | |||
ant.mkdir dir: checkOutDir | ant.mkdir dir: checkOutDir | |||
println "Downloading Grails source code. If you already have a copy " + | println "Downloading Grails source code. If you already have a copy " + | |||
"of the Grails source code checked out you can avoid this downlo ad " + | "of the Grails source code checked out you can avoid this downlo ad " + | |||
"by setting the grails.home system property to point to your loc al " + | "by setting the grails.home system property to point to your loc al " + | |||
"copy of the source. See README.md for more information." | "copy of the source. See README.md for more information." | |||
def zipFile = "${checkOutDir}/grails-src.zip" | def zipFile = "${checkOutDir}/grails-src.zip" | |||
def tag = System.getenv('TRAVIS_TAG') | def grailsVersion = System.getenv('TARGET_GRAILS_VERSION') | |||
if(tag) { | if(grailsVersion) { | |||
ant.get src: "https://github.com/grails/grails-core/archive/${tag}.z | ant.get src: "https://github.com/grails/grails-core/archive/v${grail | |||
ip", dest: zipFile, verbose: true | sVersion}.zip", dest: zipFile, verbose: true | |||
} | } | |||
else { | else { | |||
ant.get src: "http://github.com/grails/grails-core/zipball/${githubB ranch}", dest: zipFile, verbose: true | ant.get src: "http://github.com/grails/grails-core/zipball/${githubB ranch}", dest: zipFile, verbose: true | |||
} | } | |||
ant.unzip src: zipFile, dest: checkOutDir, { | ant.unzip src: zipFile, dest: checkOutDir, { | |||
mapper type: "regexp", from: "(grails-core-\\S*?/)(.*)", to: "grail s-src/\\2" | mapper type: "regexp", from: "(grails-core-\\S*?/)(.*)", to: "grail s-src/\\2" | |||
} | } | |||
ant.chmod(file:"${checkOutDir}/grails-src/gradlew", perm:700) | ant.chmod(file:"${checkOutDir}/grails-src/gradlew", perm:700) | |||
End of changes. 2 change blocks. | ||||
5 lines changed or deleted | 5 lines changed or added |