Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Grails 3 #131

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
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
82 changes: 0 additions & 82 deletions .classpath

This file was deleted.

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ plugin.xml
grails-*.zip
*.log
*.class
target-eclipse
target-eclipse
build
.gradle
32 changes: 0 additions & 32 deletions .project

This file was deleted.

28 changes: 27 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,36 @@
# Bootstrap CSS for Grails
## CSS framework as Grails plugin

## Grails 3 Compatibility
Latest 3.3.5-SNAPSHOT comes with Grails 3 compatibility and bootstrap upgraded to v3.3.5

Usage in `build.gradle`:

```
compile "org.grails.plugins:twitter-bootstrap:3.3.5-SNAPSHOT"
```

### Notes:
1. No support for resources plugin
2. Removed deprecated copy-twitterbootstrap command.

### Excluding LESS files:
Modify `build.gradle` of the app which uses the plugin by adding :

```groovy
assets {
excludes = ['**/*.less']
}
```

## Grails 2.* Usage
Provides Bootstrap CSS framework resource files.

Use in `BuildConfig.groovy`
```groovy
plugins {
/// whatever
runtime ':twitter-bootstrap:$version' // current: 3.3.4
runtime ':twitter-bootstrap:$version' // current: 3.3.5
// else whatever
}
```
Expand Down Expand Up @@ -209,6 +232,9 @@ See http://getbootstrap.com/css/ for the updated documentation.

# History

3.3.5
- Grails 3 and Bootstrap 3.3.5 upgrade

3.3.4
- Upgraded to Bootstrap 3.3.4

Expand Down
1 change: 0 additions & 1 deletion application.properties

This file was deleted.

71 changes: 71 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
buildscript {
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"
}

version "3.3.5-SNAPSHOT"
group "org.grails.plugins"

apply plugin: 'maven-publish'
apply plugin: 'eclipse'
apply plugin: 'idea'
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'

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

sourceCompatibility = 1.7
targetCompatibility = 1.7


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

dependencyManagement {
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.grails:grails-web-boot"
provided "org.grails:grails-dependencies"
provided 'javax.servlet:javax.servlet-api:3.1.0'

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

console "org.grails:grails-console"
}

task wrapper(type: Wrapper) {
gradleVersion = gradleWrapperVersion
}
2 changes: 2 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
grailsVersion=3.0.2
gradleWrapperVersion=2.3
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Wed Feb 04 17:05:29 CST 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.3-bin.zip
Loading