-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
restructured gradle configs into separate files
- Loading branch information
1 parent
1ada8da
commit 098afc0
Showing
6 changed files
with
104 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
artifactory { | ||
contextUrl = 'https://oss.jfrog.org' | ||
publish { | ||
repository { | ||
repoKey = 'oss-snapshot-local' | ||
username = System.getenv("BINTRAY_USER") ?: project.hasProperty("bintrayUser") ? project.bintrayUser : '' | ||
password = System.getenv("BINTRAY_KEY") ?: project.hasProperty("bintrayKey") ? project.bintrayKey : '' | ||
} | ||
defaults { | ||
publications('maven') | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
asciidoctor { | ||
logDocuments true | ||
baseDirFollowsSourceDir() | ||
|
||
sourceDir = file('src/docs') | ||
sources { | ||
include 'index.adoc' | ||
} | ||
|
||
outputDir new File(buildDir, 'docs') | ||
|
||
outputOptions { | ||
backends = ['html5', 'pdf', 'epub3'] | ||
separateOutputDirs = false | ||
} | ||
|
||
attributes 'experimental': 'true', | ||
'source-highlighter': 'coderay', | ||
'compat-mode': 'true', | ||
toc: 'left', | ||
icons: 'font', | ||
setanchors: 'true', | ||
idprefix: '', | ||
idseparator: '-', | ||
toc2: '', | ||
numbered: '', | ||
version: project.version, | ||
groupId: project.group, | ||
artifactId: project.name, | ||
revnumber: project.version, | ||
revdate: buildDate() | ||
} | ||
|
||
task docs(dependsOn: 'asciidoctor') { | ||
doLast { | ||
File dir = new File(buildDir, 'docs') | ||
dir.mkdirs() | ||
|
||
['pdf', 'epub'].each { String ext -> | ||
File f = new File(dir, 'index.' + ext) | ||
if (f.exists()) { | ||
f.renameTo new File(dir, project.name + '-' + project.version + '.' + ext) | ||
} | ||
} | ||
|
||
new File(buildDir, 'docs/ghpages.html') << file('src/docs/templates/index.tmpl').text.replaceAll("@VERSION@", project.version).replaceAll("@DOCDATE@", buildDate()) | ||
|
||
copy { | ||
from 'src/docs' | ||
into new File(buildDir, 'docs').path | ||
include '**/*.png' | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
def setIfNotSet = { String name, value -> | ||
if (!project.ext.has(name)) { | ||
project.ext[name] = value | ||
} | ||
} | ||
setIfNotSet 'issueTrackerUrl', project.vcsUrl + '/issues' | ||
setIfNotSet 'websiteUrl', project.vcsUrl | ||
|
||
grailsPublish { | ||
user = System.getenv("BINTRAY_USER") ?: project.hasProperty("bintrayUser") ? project.bintrayUser : '' | ||
key = System.getenv("BINTRAY_KEY") ?: project.hasProperty("bintrayKey") ? project.bintrayKey : '' | ||
githubSlug = 'robertoschwald/grails-audit-logging-plugin' | ||
websiteUrl = project.hasProperty('websiteUrl') ? project.websiteUrl : "https://grails.org/plugin/$project.name" | ||
license { | ||
name = project.hasProperty('license') ? [project.license] : ['Apache-2.0'] | ||
} | ||
issueTrackerUrl = project.hasProperty('issueTrackerUrl') ? project.issueTrackerUrl : "https://github.com/grails-plugins/$project.name/issues" | ||
vcsUrl = project.hasProperty('vcsUrl') ? project.vcsUrl : "https://github.com/robertoschwald/$project.name" | ||
title = "Grails Audit-Logging Plugin" | ||
desc = "Grails Audit-Logging Plugin for Grails 4.x" | ||
developers = [robertoschwald:"Robert Oschwald", longwa:"Aaron Long", elkr:"Elmar Kretzer"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters