Skip to content

Commit

Permalink
Release: 0.5.1
Browse files Browse the repository at this point in the history
using gradle 2.12 compileOnly
  • Loading branch information
xmlking committed Mar 16, 2016
1 parent 1156ebf commit 9dcfeb4
Show file tree
Hide file tree
Showing 12 changed files with 20 additions and 36 deletions.
16 changes: 1 addition & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,28 +27,14 @@ allprojects {
mavenCentral()
mavenLocal()
}

// to add provided scope
configurations {
provided
testCompile.extendsFrom(provided)
}
sourceSets {
main {
compileClasspath += configurations.provided
}
}
}

def narProjects = subprojects - project(':nifi-sumo-common')
def narLangProjects = project(':nifi-lang-groovy')
def narProcessorProjects = narProjects - narLangProjects

configure(narProjects) {

apply plugin: 'de.fanero.gradle.plugin.nar'
}

configure(narProcessorProjects) {
dependencies {
compile project(':nifi-sumo-common')
compile "org.apache.nifi:nifi-api:${nifiVersion}"
Expand Down
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version=0.4.1-SNAPSHOT
nifiVersion=0.4.1
version=0.5.1-SNAPSHOT
nifiVersion=0.5.1
groovyVersion=2.4.5
gradleWrapperVersion=2.9
gradleWrapperVersion=2.12
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Sun Dec 20 14:46:41 PST 2015
#Tue Mar 15 18:19:40 PDT 2016
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.12-all.zip
2 changes: 1 addition & 1 deletion gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ echo location of your Java installation.
goto fail

:init
@rem Get command-line arguments, handling Windowz variants
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args
if "%@eval[2+2]" == "4" goto 4NT_args
Expand Down
6 changes: 4 additions & 2 deletions nifi-execute-groovy-processors/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ description = 'NiFi Groovy Script Executor Processor'
apply plugin: 'groovy'

dependencies {
provided project(':nifi-lang-groovy')
compileOnly "org.codehaus.groovy:groovy-all:${groovyVersion}"
// compile "org.codehaus.groovy:groovy-all:${groovyVersion}"

nar "org.apache.nifi:nifi-scripting-bundle:${nifiVersion}"

nar "org.apache.nifi:nifi-lang-groovy:${version}"
}
5 changes: 2 additions & 3 deletions nifi-execute-ldap-processors/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@ description = 'NiFi Execute LDAP Script Processor'
apply plugin: 'groovy'

dependencies {
provided project(':nifi-lang-groovy')
compileOnly "org.codehaus.groovy:groovy-all:${groovyVersion}"

// compile "org.apache.directory:groovyldap:latest.integration"
// compile "org.apache.directory.api:api-all:1.0.0-M32"
compile fileTree(dir: 'lib', include: '*.jar')


nar "org.apache.nifi:nifi-lang-groovy:${version}"
nar "org.apache.nifi:nifi-scripting-bundle:${nifiVersion}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ params.base = 'ou=sumo,ou=demo,dc=cc,dc=com'
params.scope = ldap.ONE
params.filter = '(objectclass=*)'

attbs = [:]

ldap.eachEntry (params) { entry ->
println "${entry.cn} (${entry.dn})"
attbs['cn'] = entry.cn
Expand Down
5 changes: 3 additions & 2 deletions nifi-execute-remote-processors/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ description = 'NiFi Execute Remote Processor'
apply plugin: 'groovy'

dependencies {
provided project(':nifi-lang-groovy')
compileOnly "org.codehaus.groovy:groovy-all:${groovyVersion}"

compile ("org.hidetake:groovy-ssh:1.1.8") {
exclude(group: 'org.codehaus.groovy', module: 'groovy-all')
}

nar "org.apache.nifi:nifi-lang-groovy:${version}"
nar "org.apache.nifi:nifi-scripting-bundle:${nifiVersion}"
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import org.apache.nifi.util.MockFlowFile
import org.apache.nifi.util.TestRunner
import org.apache.nifi.util.TestRunners
import org.junit.Before
import org.junit.Ignore
import org.junit.Test

import static org.junit.Assert.assertTrue
Expand All @@ -23,6 +24,7 @@ public class TestExecuteRemoteProcess {
runDsl = this.getClass().getResource( '/runDsl.groovy' ).text
}

@Ignore
@Test
public void testThing() throws IOException {

Expand Down
7 changes: 0 additions & 7 deletions nifi-lang-groovy/build.gradle

This file was deleted.

1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
rootProject.name = 'nifi-scripting'
include 'nifi-sumo-common',
'nifi-lang-groovy',
'nifi-execute-groovy-processors',
'nifi-execute-remote-processors',
'nifi-execute-ldap-processors',
Expand Down

0 comments on commit 9dcfeb4

Please sign in to comment.