Skip to content

Commit

Permalink
Renamed Plugin file and added setting.gradle for changing rootProject…
Browse files Browse the repository at this point in the history
… name and removed off unused dependencies from build.gradle.
  • Loading branch information
sachin-verma committed Jul 9, 2015
1 parent 059e5cc commit 5c2ab79
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 44 deletions.
75 changes: 37 additions & 38 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
buildscript {
ext {
grailsVersion = project.grailsVersion
}
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
}
ext {
grailsVersion = project.grailsVersion
}
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
}
}

plugins {
id "io.spring.dependency-management" version "0.5.1.RELEASE"
id "com.jfrog.bintray" version "1.1"
id "io.spring.dependency-management" version "0.5.1.RELEASE"
id "com.jfrog.bintray" version "1.1"
}

version "0.1-SNAPSHOT"
version "1.0-SNAPSHOT"
group "org.grails.plugins"

apply plugin: 'maven-publish'
Expand All @@ -26,51 +26,50 @@ apply plugin: "spring-boot"
apply plugin: "org.grails.grails-plugin"
apply plugin: "org.grails.grails-gsp"
// Used for publishing to central repository, remove if not needed
apply from:'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
apply from:'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'
apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/grailsCentralPublishing.gradle'
apply from: 'https://raw.githubusercontent.com/grails/grails-profile-repository/master/profiles/plugin/templates/bintrayPublishing.gradle'

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

sourceCompatibility = 1.7
targetCompatibility = 1.7


repositories {
mavenLocal()
mavenCentral()
maven { url "https://repo.grails.org/grails/core" }
mavenLocal()
mavenCentral()
maven { url "https://repo.grails.org/grails/core" }
}

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

dependencies {
provided 'org.springframework.boot:spring-boot-starter-logging'
provided "org.springframework.boot:spring-boot-starter-actuator"
provided "org.springframework.boot:spring-boot-autoconfigure"
provided "org.springframework.boot:spring-boot-starter-tomcat"
provided 'org.springframework.boot:spring-boot-starter-logging'
provided "org.springframework.boot:spring-boot-starter-actuator"
provided "org.springframework.boot:spring-boot-autoconfigure"
provided "org.springframework.boot:spring-boot-starter-tomcat"

provided "org.grails:grails-web-boot"
provided "org.grails:grails-dependencies"
provided 'javax.servlet:javax.servlet-api:3.1.0'
provided 'net.sf.opencsv:opencsv:2.3'
provided "org.grails:grails-web-boot"
provided "org.grails:grails-dependencies"
provided 'javax.servlet:javax.servlet-api:3.1.0'
compile 'net.sf.opencsv:opencsv:2.3'

testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails:grails-plugin-testing"

testCompile "org.grails.plugins:geb:1.0.0.BUILD-SNAPSHOT"
// Note: It is recommended to update to a more robust driver (Chrome, Firefox etc.)
testRuntime 'org.seleniumhq.selenium:selenium-htmlunit-driver:2.44.0'
testCompile "org.grails.plugins:geb:1.0.0.BUILD-SNAPSHOT"
// Note: It is recommended to update to a more robust driver (Chrome, Firefox etc.)
testRuntime 'org.seleniumhq.selenium:selenium-htmlunit-driver:2.44.0'

console "org.grails:grails-console"
}

task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
gradleVersion = gradleWrapperVersion
}
1 change: 1 addition & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rootProject.name = 'csv'
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@ import grails.core.GrailsApplication
import grails.plugins.*
import grails.plugins.csv.controller.RenderCsvMethod

class GrailsCsvGrailsPlugin extends Plugin {
class CsvGrailsPlugin extends Plugin {

// the version or versions of Grails the plugin is designed for
def grailsVersion = "3.0.1 > *"
// resources that are excluded from plugin packaging
def pluginExcludes = [
"grails-app/views/error.gsp"
"grails-app/views/error.gsp",
"grails-app/controllers/**/*"
]

def observe = [
"controllers"
]

def loadAfter = [
"controllers"
]

// TODO Fill in these fields
Expand Down Expand Up @@ -82,19 +91,22 @@ class GrailsCsvGrailsPlugin extends Plugin {
// Extra (optional) plugin metadata

// License: one of 'APACHE', 'GPL2', 'GPL3'
// def license = "APACHE"
def license = "APACHE"

// Details of company behind the plugin (if there is one)
// def organization = [ name: "My Company", url: "http://www.my-company.com/" ]

// Any additional developers beyond the author specified above.
def developers = [ [ name: "Sachin Verma", email: "[email protected]"],[ name: "Neha Gupta", email: "[email protected]"] ]
def developers = [
[name: "Sachin Verma", email: "[email protected]"],
[name: "Neha Gupta", email: "[email protected]"]
]

// Location of the plugin's issue tracker.
// def issueManagement = [ system: "JIRA", url: "http://jira.grails.org/browse/GPMYPLUGIN" ]
def issueManagement = [ system: "JIRA", url: "https://github.com/pedjak/grails-csv/issues" ]

// Online location of the plugin's browseable source code.
// def scm = [ url: "http://svn.codehaus.org/grails-plugins/" ]
def scm = [ url: "https://github.com/pedjak/grails-csv/" ]

Closure doWithSpring() { {->
// TODO Implement runtime spring config (optional)
Expand Down

0 comments on commit 5c2ab79

Please sign in to comment.