Skip to content
Open
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
13 changes: 11 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,14 @@ plugin.xml
.DS_Store
*.zip
*.log


.gradle
build/
classes/
.idea
*.iml
*.ipr
*.iws
.project
.settings
.classpath
gradle/
59 changes: 0 additions & 59 deletions SpudPermalinksGrailsPlugin.groovy

This file was deleted.

2 changes: 0 additions & 2 deletions application.properties

This file was deleted.

147 changes: 147 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
buildscript {
ext {
grailsVersion = project.grailsVersion
}
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
maven { url "http://dl.bintray.com/bertramlabs/grails3-plugins" }
maven { url "http://dl.bintray.com/bluesliverx/grails-plugins" }
maven { url "https://dl.bintray.com/bertramlabs/gomorpheus/" }
maven { url "http://nexus.bertramlabs.com/content/repositories/snapshots" }
maven { url "http://nexus.bertramlabs.com/content/repositories/releases" }
maven { url "http://nexus.bertramlabs.com/content/repositories/publicReleases" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:${assetPipelineVersion}"
}
}

version project.appVersion
group "spud.permalinks"

apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"org.grails.grails-plugin"
apply plugin:"org.grails.grails-plugin-publish"
apply plugin:"org.grails.grails-gsp"
apply plugin:"asset-pipeline"

ext {
grailsVersion = project.grailsVersion
gradleWrapperVersion = project.gradleWrapperVersion
}

repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
maven { url "http://dl.bintray.com/bertramlabs/grails3-plugins" }
maven { url "http://dl.bintray.com/bluesliverx/grails-plugins" }
maven { url "https://dl.bintray.com/bertramlabs/gomorpheus/" }
maven { url "http://nexus.bertramlabs.com/content/repositories/snapshots" }
maven { url "http://nexus.bertramlabs.com/content/repositories/releases" }
maven { url "http://nexus.bertramlabs.com/content/repositories/publicReleases" }
}

dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}

dependencies {
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.grails:grails-core"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-starter-tomcat"
compile "org.grails:grails-dependencies"
compile "org.grails:grails-web-boot"
compile "org.grails:grails-logging"
compile "org.grails:grails-plugin-rest"
compile "org.grails:grails-plugin-databinding"
compile "org.grails:grails-plugin-i18n"
compile "org.grails:grails-plugin-services"
compile "org.grails:grails-plugin-url-mappings"
compile "org.grails:grails-plugin-interceptors"
compile "org.grails.plugins:cache"
compile "org.grails.plugins:async"
compile "org.grails.plugins:scaffolding"
compile "org.grails.plugins:gsp"
compile "spud.core:spud-core:3.3.0-SNAPSHOT"
compile "org.grails.plugins:hibernate5"
compile "org.hibernate:hibernate-core:5.1.5.Final"
compile "org.hibernate:hibernate-ehcache:5.1.5.Final"
compile "org.grails:grails-datastore-rest-client"

console "org.grails:grails-console"

profile "org.grails.profiles:web-plugin"

provided "org.grails:grails-plugin-services"
provided "org.grails:grails-plugin-domain-class"

// Add the Grails Plugin to the runtime dependencies
runtime "com.bertramlabs.plugins:asset-pipeline-grails:${assetPipelineVersion}"

testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails.plugins:geb"
testCompile "org.grails:grails-gorm-testing-support:1.1.4"
testCompile "org.grails:grails-web-testing-support:1.1.4"

testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
}

bootRun {
jvmArgs('-Dspring.output.ansi.enabled=always')
addResources = true
String springProfilesActive = 'spring.profiles.active'
systemProperty springProfilesActive, System.getProperty(springProfilesActive)
}
// enable if you wish to package this plugin as a standalone application
//bootRepackage.enabled = false

grailsPublish {
// TODO: Provide values here
user = 'user'
key = 'key'
githubSlug = 'foo/bar'
license {
name = 'Apache-2.0'
}
title = "Spud Permalinks Plugin"
desc = "Creates a filter for redirecting urls from one location to another and provides an admin interface for defining these permalinks."
developers = [destes:"David Estes", wchu:"William Chu"]
portalUser = ""
portalPassword = ""
}

assets {
minifyJs = true
minifyCss = true

enableSourceMaps = true

packagePlugin = true
}

publishing {
repositories {
maven {
credentials {
if (project.hasProperty("labsNexusUser")) {
username = labsNexusUser
}
if (project.hasProperty("labsNexusPassword")) {
password = labsNexusPassword
}
}
def releasesRepoUrl = "http://nexus.bertramlabs.com/content/repositories/releases"
def snapshotsRepoUrl = "http://nexus.bertramlabs.com/content/repositories/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
6 changes: 6 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
grailsVersion=3.3.8
gradleWrapperVersion=3.5
appVersion=3.3.0-SNAPSHOT
assetPipelineVersion=2.14.10
#assetPipelineVersion=2.15.1
#assetPipelineVersion=3.0.5
Loading