Skip to content

Commit

Permalink
Bump version to 1.3.1, built with Java 1.6 fixes eriwen#47
Browse files Browse the repository at this point in the history
  • Loading branch information
eriwen committed Jan 25, 2013
1 parent 74efa4c commit 7d71a1c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath 'com.eriwen:gradle-js-plugin:1.3'
classpath 'com.eriwen:gradle-js-plugin:1.3.1'
}
}
// Invoke the plugin
Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'idea'

defaultTasks 'clean', 'build'

version = '1.3'
version = '1.3.1'
group = 'com.eriwen'
ext.archivesBaseName = 'gradle-js-plugin'
ext.isSnapshot = version.endsWith("-SNAPSHOT")
Expand Down Expand Up @@ -104,7 +104,7 @@ uploadArchives {
def getPomConfiguration() {
return {
name 'Gradle JS Plugin'
packaging 'war'
packaging 'jar'
description 'A Gradle plugin for working with JS.'
url 'https://github.com/eriwen/gradle-js-plugin'
licenses {
Expand All @@ -118,7 +118,7 @@ def getPomConfiguration() {
developer {
id 'eriwen'
name 'Eric Wendelin'
email 'emwendelin@gmail.com'
email 'me@eriwen.com'
}
}
scm {
Expand Down
17 changes: 7 additions & 10 deletions src/test/groovy/com/eriwen/gradle/js/JsHintTaskTest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ import org.junit.rules.TemporaryFolder
import spock.lang.Specification

class JsHintTaskTest extends Specification {

@Rule TemporaryFolder dir = new TemporaryFolder();
@Rule TemporaryFolder dir = new TemporaryFolder()

Project project = ProjectBuilder.builder().build()
def task
Expand All @@ -29,33 +28,32 @@ class JsHintTaskTest extends Specification {
addInvalidFile()

when:
task.run();

task.run()

then:
notThrown ExecException
}

def "build passes with only valid files"() {
given:
task.ignoreExitCode = false;
task.ignoreExitCode = false
addValidFile()

when:
task.run();
task.run()

then:
notThrown ExecException
}

def "build fails with invalid files"() {
given:
task.ignoreExitCode = false;
task.ignoreExitCode = false
addValidFile()
addInvalidFile()

when:
task.run();
task.run()

then:
ExecException e = thrown()
Expand All @@ -72,10 +70,9 @@ class JsHintTaskTest extends Specification {
}

def addFile(name,contents) {
def file = new File(src,name)
def file = new File(src as String, name)
file << contents
}

}


0 comments on commit 7d71a1c

Please sign in to comment.