-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
410 changed files
with
4,894 additions
and
24,978 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 |
---|---|---|
@@ -1,52 +1,36 @@ | ||
language: groovy | ||
|
||
sudo: false | ||
|
||
before_cache: | ||
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock | ||
cache: | ||
directories: | ||
- $HOME/.m2 | ||
- $HOME/.gradle | ||
- $HOME/.grails | ||
|
||
- "$HOME/.m2" | ||
- "$HOME/.gradle/caches/" | ||
- "$HOME/.gradle/wrapper/" | ||
- "$HOME/.grails" | ||
jdk: | ||
- oraclejdk8 | ||
|
||
services: | ||
- memcached | ||
- redis-server | ||
|
||
install: | ||
- npm install divshot-cli -g | ||
|
||
before_install: "./install-sdkman.sh" | ||
install: true | ||
script: "./test-app.sh" | ||
|
||
after_success: "./doc.sh" | ||
|
||
after_script: "./publish-test-results.sh" | ||
|
||
notifications: | ||
webhooks: | ||
urls: | ||
- https://webhooks.gitter.im/e/ab2251f887cfa63260af | ||
on_success: change | ||
on_failure: always | ||
on_start: false | ||
|
||
env: | ||
global: | ||
- secure: NDX1oObVIHhG5zUZzhmL8m/601SFB2pE29dci1EcgKrYhdZf+50+Va/b0/7lNzYXnT76CwQmdkbsJmwqBh6+YO+SXcJFE13zudyGfZhLOwY+/oueQB8Up/gk2WbkY4FdIlo0XP/jl+atz4gR9EoAnKCYbdcjYj2lQnJ8ocDpi5U= | ||
- secure: i+HYyyMe2qXPZkP113Vo+uXDzWeiS96dE8EiURxB75HDLuQ1UuIKkfZylNyWXcJHh8gy6ypKffxjZ0FeN44FQeiChE+WC20Xh9UOG076zHogFIE/IooFawau+jcvqJzQU+3koDO9zocu8HfULqenfapSKri/5vMxaPTj85VdFfk= | ||
- secure: XBD/lDc+U/9c6qKKRKuhjxrMe8nIz6T3MtAgPr77bowh0c4EpZiIOQ5+dpUBvA6jL5h8UYck8DAeqC9H7RTG0ZQS+2eJQiEVQXTKfwfe53LQP1CUfAC94o4yNnIpZ9nRikbHKUIqIqla8PXl94TteSpbO9fhb6byFyiGFgGwi34= | ||
- secure: gb4ezV+KeMtpWVKoReJnK/6IEhCvnp+NLo9Q7NrxL7kdBch8zqHmY8ToG/MW8faDEG2JCp4XzIh+0Sh/kzkQY1KurI53M92TNjhXO0BTp/mUiToMhHEEkedZ99p+aCCSHoGzZiwLAOAuvcp7swQ6N75u6smrCBSy/gZVkXSVBnk= | ||
- GIT_NAME="Alvaro Sanchez-Mariscal" | ||
- GIT_EMAIL="alvaro.sanchezmariscal@gmail.com" | ||
|
||
before_deploy: ./publish-plugin.sh | ||
before_deploy: "./publish-plugin.sh" | ||
deploy: | ||
provider: releases | ||
skip_cleanup: true | ||
api_key: | ||
secure: QpD/nt7wNuLHntXz2+C0LeD/W1m1F8x84t7KbFjNg+lswa3tfq7CZE4w979JUt0BQKJWR4mKb61ENtJtsVey/gth8tpO65xMLdDZ0+eYJ+oN9lCMfnzNfMOi7NWAixHeKe6bfClvW7xU8LsfY3eMZKiRPJ1SBNJ26b9YtkptTTU= | ||
file: grails-spring-security-rest-${TRAVIS_TAG}.zip | ||
file: spring-security-rest/build/libs/spring-security-rest-${TRAVIS_TAG}.jar | ||
on: | ||
repo: alvarosanchez/grails-spring-security-rest | ||
tags: true |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,51 +1,150 @@ | ||
buildscript { | ||
ext { | ||
grailsVersion = project.grailsVersion | ||
} | ||
repositories { | ||
mavenLocal() | ||
jcenter() | ||
maven { url "https://repo.grails.org/grails/core" } | ||
} | ||
dependencies { | ||
classpath "org.grails:grails-gradle-plugin:$grailsVersion" | ||
classpath "org.jfrog.buildinfo:build-info-extractor-gradle:latest.release" | ||
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4' | ||
//classpath "io.spring.gradle:dependency-management-plugin:0.6.1.RELEASE" | ||
} | ||
} | ||
|
||
plugins { | ||
id "com.github.hierynomus.license" version "0.11.0" | ||
id 'com.github.ben-manes.versions' version '0.17.0' | ||
} | ||
|
||
apply plugin:'groovy' | ||
|
||
license { | ||
|
||
sourceSets { | ||
main { | ||
groovy { | ||
srcDirs = [ | ||
'grails-app/controllers', | ||
'grails-app/domain', | ||
'grails-app/services', | ||
'grails-app/taglib', | ||
'grails-app/utils', | ||
'src/groovy', | ||
'scripts' | ||
] | ||
} | ||
java { | ||
srcDirs = [ | ||
'src/java' | ||
] | ||
allprojects { | ||
apply plugin:"idea" | ||
} | ||
|
||
def pluginProjects = ['spring-security-rest', 'spring-security-rest-memcached', 'spring-security-rest-redis', 'spring-security-rest-grailscache', 'spring-security-rest-gorm'] | ||
def profileProjects = ['spring-security-rest-testapp-profile'] | ||
def publishedProjects = pluginProjects + profileProjects | ||
|
||
subprojects { Project project -> | ||
group "org.grails.plugins" | ||
version "3.0.0.RC1" | ||
|
||
ext { | ||
grailsVersion = project.grailsVersion | ||
gradleWrapperVersion = project.gradleWrapperVersion | ||
isSnapshot = version.endsWith('SNAPSHOT') | ||
bintrayUser = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : '' | ||
bintrayKey = project.hasProperty('bintrayKey') ? project.property('bintrayKey') : '' | ||
pluginPortalUser = project.hasProperty('pluginPortalUser') ? project.property('pluginPortalUser') : '' | ||
pluginPortalPassword = project.hasProperty('pluginPortalPassword') ? project.property('pluginPortalPassword') : '' | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { url "https://repo.grails.org/grails/core" } | ||
} | ||
if (project.name != "spring-security-rest-docs" && | ||
project.name != "spring-security-rest-testapp-profile" && | ||
!project.name.startsWith("build") ) { | ||
apply plugin: "org.grails.grails-plugin" | ||
apply plugin: "org.grails.grails-plugin-publish" | ||
apply plugin: "com.jfrog.artifactory" | ||
} | ||
|
||
if (project.name in pluginProjects) { | ||
|
||
sourceCompatibility = targetCompatibility = 1.8 | ||
|
||
dependencies { | ||
console "org.grails:grails-console" | ||
|
||
compile "org.springframework.boot:spring-boot-starter-logging" | ||
compile "org.springframework.boot:spring-boot-autoconfigure" | ||
compile "org.grails:grails-core" | ||
|
||
provided "org.grails:grails-plugin-services" | ||
provided "org.grails:grails-plugin-domain-class" | ||
|
||
testCompile "org.grails:grails-gorm-testing-support" | ||
//testCompile "org.grails:grails-plugin-testing" | ||
testCompile "org.grails:grails-web-testing-support" | ||
testCompile('com.athaydes:spock-reports:1.2.13') { | ||
transitive = false | ||
} | ||
} | ||
|
||
test { | ||
groovy { | ||
def dirs = [ | ||
'test/functional', | ||
'test/integration', | ||
'test/unit' | ||
] | ||
new File('test/apps').eachDir { File app -> | ||
dirs << "test/apps/${app.name}/test/functional" | ||
dirs << "test/apps/${app.name}/test/integration" | ||
dirs << "test/apps/${app.name}/test/unit" | ||
} | ||
testLogging { | ||
exceptionFormat = 'full' | ||
events 'failed', 'standardOut', 'standardError' | ||
} | ||
|
||
beforeTest { descriptor -> logger.quiet " -- $descriptor" } | ||
} | ||
|
||
artifactoryPublish { | ||
dependsOn sourcesJar, javadocJar | ||
} | ||
} | ||
|
||
srcDirs = dirs | ||
if (project.name in profileProjects) { | ||
apply plugin: "org.grails.grails-profile" | ||
apply plugin: "org.grails.grails-profile-publish" | ||
} | ||
|
||
if (project.name in publishedProjects && project.name != "spring-security-rest-docs" && | ||
project.name != "spring-security-rest-testapp-profile") { | ||
grailsPublish { | ||
user = bintrayUser | ||
key = bintrayKey | ||
portalUser = pluginPortalUser | ||
portalPassword = pluginPortalPassword | ||
userOrg = 'grails' | ||
repo = 'plugins' | ||
githubSlug = 'alvarosanchez/grails-spring-security-rest' | ||
license { | ||
name = 'Apache-2.0' | ||
} | ||
title = "Spring Security REST plugin" | ||
desc = "Grails plugin to implement token-based, RESTful authentication using Spring Security" | ||
developers = [ | ||
alvarosanchez: "Alvaro Sanchez-Mariscal", | ||
Schlogen: "James Kleeh" | ||
] | ||
} | ||
|
||
artifactory { | ||
contextUrl = 'http://oss.jfrog.org' | ||
publish { | ||
repository { | ||
repoKey = isSnapshot ? 'oss-snapshot-local' : 'oss-release-local' | ||
username = bintrayUser | ||
password = bintrayKey | ||
} | ||
defaults { | ||
// Reference to Gradle configurations defined in the build script. | ||
// This is how we tell the Artifactory Plugin which artifacts should be | ||
// published to Artifactory. | ||
publications('maven') | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
ext.year = Calendar.instance.get(Calendar.YEAR) | ||
ext.name = 'Alvaro Sanchez-Mariscal' | ||
ext.email = 'alvaro.sanchezmariscal@gmail.com' | ||
task wrapper(type: Wrapper) { | ||
gradleVersion = gradleWrapperVersion | ||
} | ||
|
||
licenseMain.dependsOn 'licenseTest' | ||
task aggregateGroovyDoc(type: Groovydoc) { | ||
def groovyDocProjects = subprojects.findAll { it.name in pluginProjects } | ||
group = JavaBasePlugin.DOCUMENTATION_GROUP | ||
|
||
dependsOn groovyDocProjects.groovydoc | ||
source groovyDocProjects.groovydoc.source | ||
destinationDir file("${buildDir}/docs/groovydoc") | ||
classpath = files(groovyDocProjects.groovydoc.classpath) | ||
groovyClasspath = files(groovyDocProjects.groovydoc.groovyClasspath) | ||
} |
Oops, something went wrong.