Created
August 15, 2015 17:19
-
-
Save zml2008/7bc6b7ca87f9797b8dc6 to your computer and use it in GitHub Desktop.
maven does groovy too
This file contains hidden or 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
| project { | |
| modelVersion '4.0.0' | |
| groupId 'ninja.leaping' | |
| artifactId 'spongescript' | |
| version '1.0-SNAPSHOT' | |
| name 'SpongeScript' | |
| description 'A one-line description of this Sponge plugin. Override this page by creating a file called index.md in src/site/markdown/' | |
| url 'https://${ghUser}.github.io/${ghRepo}' | |
| prerequisites { | |
| maven '3.0.3' | |
| } | |
| scm { | |
| connection 'scm:git:git://github.com/${ghProject}.git' | |
| developerConnection 'scm:git:ssh://[email protected]${ghProject}.git' | |
| url 'https://github.com/${ghProject}' | |
| } | |
| issueManagement { | |
| system 'GitHub' | |
| url 'https://github.com/${ghProject}/issues' | |
| } | |
| distributionManagement { | |
| site { | |
| id 'gh-pages' | |
| name 'GitHub Pages' | |
| url 'github:http://${ghUser}.github.io/${ghRepo}/${siteUrlSuffix}/' | |
| } | |
| } | |
| properties { | |
| ghUser 'zml2008' | |
| siteUrlSuffix '${project.version}' | |
| ghRepo 'SpongeScript' | |
| ghProject '${ghUser}/${ghRepo}' | |
| 'project.build.sourceEncoding' 'UTF-8' | |
| } | |
| dependencies { | |
| dependency('org.spongepowered:spongeapi:2.1-SNAPSHOT') { | |
| scope 'provided' | |
| } | |
| dependency('junit:junit:4.12') { | |
| scope 'test' | |
| } | |
| dependency('org.codehaus.groovy:groovy-jsr223:2.4.4') | |
| dependency('org.jruby:jruby:9.0.0.0') | |
| } | |
| repositories { | |
| repository { | |
| id 'sponge-repo' | |
| url 'http://repo.spongepowered.org/maven' | |
| } | |
| } | |
| build { | |
| resources { | |
| resource { | |
| filtering 'true' | |
| directory '${project.basedir}/src/main/resources' | |
| } | |
| } | |
| plugins { | |
| plugin { | |
| artifactId 'maven-compiler-plugin' | |
| version '3.3' | |
| configuration { | |
| source '1.8' | |
| target '1.8' | |
| } | |
| } | |
| plugin('org.codehaus.mojo:templating-maven-plugin:1.0-alpha-3') { | |
| executions { | |
| execution(goal: 'filter-sources') { | |
| id 'filter-src' | |
| } | |
| } | |
| } | |
| plugin { | |
| artifactId 'maven-site-plugin' | |
| version '3.3' | |
| dependencies { | |
| dependency('net.trajano.wagon:wagon-git:2.0.3') | |
| dependency('org.apache.maven.doxia:doxia-module-markdown:1.6') | |
| } | |
| } | |
| plugin { | |
| artifactId 'maven-shade-plugin' | |
| version '2.3' | |
| executions { | |
| execution(goal: 'shade') { | |
| phase 'package' | |
| } | |
| } | |
| } | |
| plugin { | |
| artifactId 'maven-release-plugin' | |
| version '2.5.1' | |
| configuration { | |
| autoVersionSubmodules 'true' | |
| tagNameFormat '@{project.version}' | |
| scmCommentPrefix '[RELEASE] ' | |
| goals 'install deploy site-deploy' | |
| releaseProfiles 'release' | |
| } | |
| } | |
| } | |
| } | |
| reporting { | |
| plugins { | |
| plugin { | |
| artifactId 'maven-javadoc-plugin' | |
| version '2.10.3' | |
| } | |
| } | |
| } | |
| profiles { | |
| profile { | |
| id 'release' | |
| build { | |
| plugins { | |
| plugin { | |
| artifactId 'maven-source-plugin' | |
| version '2.4' | |
| executions { | |
| execution(goal: 'jar-no-fork') { | |
| id 'attach-sources' | |
| } | |
| } | |
| } | |
| plugin { | |
| artifactId 'maven-javadoc-plugin' | |
| version '2.10.3' | |
| executions { | |
| execution(goal: 'jar') { | |
| id 'attach-javadocs' | |
| } | |
| } | |
| } | |
| plugin { | |
| artifactId 'maven-gpg-plugin' | |
| version '1.6' | |
| executions { | |
| execution(goal: 'sign') { | |
| id 'sign-artifacts' | |
| phase 'verify' | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment