-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
296 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,3 +14,6 @@ trim_trailing_whitespace = false | |
|
||
[*.java] | ||
indent_size = 4 | ||
|
||
[*.groovy] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,96 +1,91 @@ | ||
buildscript { | ||
repositories { | ||
maven { | ||
url "https://plugins.gradle.org/m2/" | ||
} | ||
} | ||
dependencies { | ||
classpath "com.gradle.publish:plugin-publish-plugin:0.9.2" | ||
} | ||
} | ||
|
||
plugins { | ||
id "groovy" | ||
id "maven-publish" | ||
id "eclipse" | ||
id "idea" | ||
id "com.jfrog.bintray" version "1.5" | ||
} | ||
|
||
apply plugin: "com.gradle.plugin-publish" | ||
|
||
sourceCompatibility = "1.7" | ||
targetCompatibility = "1.7" | ||
|
||
repositories { | ||
jcenter() | ||
mavenLocal() // Used for local development only | ||
} | ||
|
||
dependencies { | ||
compile gradleApi() | ||
compile localGroovy() | ||
compile mlAppDeployerDependency | ||
} | ||
|
||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier 'sources' | ||
from sourceSets.main.allJava | ||
from sourceSets.main.allGroovy | ||
} | ||
|
||
publishing { | ||
publications { | ||
mainJava(MavenPublication) { | ||
from components.java | ||
} | ||
sourcesJava(MavenPublication) { | ||
from components.java | ||
artifact sourcesJar | ||
} | ||
} | ||
repositories { | ||
maven { | ||
url publishUrl | ||
} | ||
} | ||
} | ||
|
||
if (project.hasProperty("myBintrayUser")) { | ||
bintray { | ||
user = myBintrayUser | ||
key = myBintrayKey | ||
publications = ['mainJava', 'sourcesJava'] | ||
pkg { | ||
repo = 'maven' | ||
name = project.name | ||
licenses = ['Apache-2.0'] | ||
vcsUrl = 'https://github.com/rjrudin/' + project.name + '.git' | ||
version { | ||
name = "2.1.0" | ||
released = new Date() | ||
} | ||
} | ||
} | ||
} | ||
|
||
pluginBundle { | ||
website = 'http://www.gradle.org/' | ||
vcsUrl = 'https://github.com/rjrudin/' + project.name + '.git' | ||
description = 'Testing ml-gradle publishing' | ||
tags = ['marklogic'] | ||
|
||
plugins { | ||
mlgradlePlugin { | ||
id = 'com.marklogic.ml-gradle' | ||
displayName = 'ml-gradle for MarkLogic' | ||
description = 'Gradle plugin for configuring and deploying applications to MarkLogic' | ||
tags = ['marklogic'] | ||
version = "2.1.0" | ||
} | ||
} | ||
|
||
mavenCoordinates { | ||
version = "2.1.0" | ||
} | ||
} | ||
buildscript { | ||
repositories { | ||
maven { | ||
url "https://plugins.gradle.org/m2/" | ||
} | ||
} | ||
dependencies { | ||
classpath "com.gradle.publish:plugin-publish-plugin:0.9.2" | ||
} | ||
} | ||
|
||
plugins { | ||
id "groovy" | ||
id "maven-publish" | ||
id "eclipse" | ||
id "idea" | ||
id "com.jfrog.bintray" version "1.5" | ||
} | ||
|
||
apply plugin: "com.gradle.plugin-publish" | ||
|
||
sourceCompatibility = "1.7" | ||
targetCompatibility = "1.7" | ||
|
||
repositories { | ||
jcenter() | ||
mavenLocal() // Used for local development only | ||
} | ||
|
||
dependencies { | ||
compile gradleApi() | ||
compile localGroovy() | ||
compile mlAppDeployerDependency | ||
} | ||
|
||
task sourcesJar(type: Jar, dependsOn: classes) { | ||
classifier 'sources' | ||
from sourceSets.main.allJava | ||
from sourceSets.main.allGroovy | ||
} | ||
|
||
publishing { | ||
publications { | ||
mainJava(MavenPublication) { | ||
from components.java | ||
} | ||
sourcesJava(MavenPublication) { | ||
from components.java | ||
artifact sourcesJar | ||
} | ||
} | ||
} | ||
|
||
if (project.hasProperty("myBintrayUser")) { | ||
bintray { | ||
user = myBintrayUser | ||
key = myBintrayKey | ||
publications = ['mainJava', 'sourcesJava'] | ||
pkg { | ||
repo = 'maven' | ||
name = project.name | ||
licenses = ['Apache-2.0'] | ||
vcsUrl = 'https://github.com/rjrudin/' + project.name + '.git' | ||
version { | ||
name = "2.2.0-RC1" | ||
released = new Date() | ||
} | ||
} | ||
} | ||
} | ||
|
||
pluginBundle { | ||
website = 'http://www.gradle.org/' | ||
vcsUrl = 'https://github.com/rjrudin/' + project.name + '.git' | ||
description = 'Testing ml-gradle publishing' | ||
tags = ['marklogic'] | ||
|
||
plugins { | ||
mlgradlePlugin { | ||
id = 'com.marklogic.ml-gradle' | ||
displayName = 'ml-gradle for MarkLogic' | ||
description = 'Gradle plugin for configuring and deploying applications to MarkLogic' | ||
tags = ['marklogic'] | ||
version = "2.2.0-RC1" | ||
} | ||
} | ||
|
||
mavenCoordinates { | ||
version = "2.2.0-RC1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
examples/sample-project/src/main/ml-modules/ext/sample-project/lib/sample-lib.xqy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
xquery version "1.0-ml"; | ||
|
||
module namespace sample = "urn:sampleapp"; | ||
|
||
declare function echo($str as xs:string?) as xs:string | ||
{ | ||
"You said: " || $str | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.