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
19 changes: 0 additions & 19 deletions .classpath

This file was deleted.

15 changes: 12 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@ target/
plugin.xml
.DS_Store
*.zip
web-app/WEB-INF/tld/*


*.log
.gradle
build/
classes/
.idea
*.iml
*.ipr
*.iws
.project
.settings
.classpath
gradle/
19 changes: 0 additions & 19 deletions .project

This file was deleted.

153 changes: 153 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
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}"
classpath "com.bertramlabs.plugins:coffee-asset-pipeline:${assetPipelineVersion}"
}
}

version project.appVersion
group "spud.markdown"

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.commonjava.googlecode.markdown4j:markdown4j:2.2-cj-1.1"
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"

// Define needed asset-pipeline plugins with the special assets-scope
assets "com.bertramlabs.plugins:coffee-asset-pipeline:${assetPipelineVersion}"
}

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 Markdown Plugin"
desc = "Adds Markdown formatting support to the Spud Site Management platform."
developers = [destes:"David Estes", wchu:"William Chu"]
portalUser = ""
portalPassword = ""
}

assets {
minifyJs = true
minifyCss = true

enableSourceMaps = true

packagePlugin = true
}

task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}

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
172 changes: 172 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading