Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
isochrone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Institut für Informatik
dbis
dbis-isochrone
isochrone
Commits
f4239473
Commit
f4239473
authored
11 years ago
by
User expired
Browse files
Options
Downloads
Patches
Plain Diff
added maven-publish plugin
parent
9caed511
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build.gradle
+106
-38
106 additions, 38 deletions
build.gradle
gradle.properties
+3
-0
3 additions, 0 deletions
gradle.properties
with
109 additions
and
38 deletions
build.gradle
+
106
−
38
View file @
f4239473
apply
plugin:
'asciidoctor'
apply
plugin:
'asciidoctor'
apply
plugin:
'eclipse'
apply
plugin:
'eclipse-wtp'
apply
plugin:
'eclipse-wtp'
apply
plugin:
'java'
apply
plugin:
'java'
apply
plugin:
'jetty'
apply
plugin:
'jetty'
apply
plugin:
'
eclipse
'
apply
plugin:
'
maven-publish
'
apply
plugin:
'vagrant'
apply
plugin:
'vagrant'
apply
plugin:
'war'
apply
plugin:
'war'
apply
plugin:
'wrapper'
apply
plugin:
'wrapper'
...
@@ -13,48 +14,64 @@ version = '1.1-SNAPSHOT'
...
@@ -13,48 +14,64 @@ version = '1.1-SNAPSHOT'
description
=
'Isochrones'
description
=
'Isochrones'
ext
{
ext
{
vagrantDirString
=
System
.
properties
[
'user.home'
]
+
'/vagrantboxes/isochrones'
defaultVersion
=
'0.3-SNAPSHOT'
isRelease
=
false
vagrantDirString
=
System
.
properties
[
'user.home'
]
+
'/vagrantboxes/'
+
project
.
name
.
toLowerCase
()
vagrantDir
=
file
(
"$vagrantDirString"
)
vagrantDir
=
file
(
"$vagrantDirString"
)
}
}
if
(
version
.
equalsIgnoreCase
(
'unspecified'
))
{
version
=
defaultVersion
}
else
if
(!
version
.
matches
(~
/[0-9\.]*(-SNAPSHOT)?/
))
{
println
"Invalid version number '$version' given. Falling back to default!"
version
=
defaultVersion
}
if
(
version
.
endsWith
(
'-SNAPSHOT'
))
{
println
"Building SNAPSHOT version $version"
}
else
{
isRelease
=
true
;
println
"Building RELEASE version $version"
}
repositories
{
repositories
{
maven
{
url
"http://maven.geo-solutions.it"
}
mavenCentral
()
maven
{
url
"http://
repo.
maven.
apache.org/maven2
"
}
maven
{
url
"http://maven.
geo-solutions.it
"
}
}
}
buildscript
{
buildscript
{
apply
from:
'http://www.krismer.de/files/checkstyle.gradle'
apply
from:
'http://www.krismer.de/files/checkstyle.gradle'
repositories
{
repositories
{
jcenter
()
jcenter
()
maven
{
url
'http://dl.bintray.com/content/aalmiray/asciidoctor'
}
maven
{
url
'http://dl.bintray.com/content/aalmiray/asciidoctor'
}
}
}
dependencies
{
dependencies
{
classpath
'org.gradle.api.plugins:gradle-vagrant-plugin:0.2'
classpath
'org.gradle.api.plugins:gradle-vagrant-plugin:0.2'
classpath
'org.asciidoctor:asciidoctor-gradle-plugin:0.7.0'
classpath
'org.asciidoctor:asciidoctor-gradle-plugin:0.7.0'
}
}
}
}
dependencies
{
dependencies
{
compile
group:
'postgresql'
,
name:
'postgresql'
,
version:
'9.1-901.jdbc4'
compile
group:
'postgresql'
,
name:
'postgresql'
,
version:
'9.1-901.jdbc4'
compile
group:
'commons-dbutils'
,
name:
'commons-dbutils'
,
version:
'1.2'
compile
group:
'commons-dbutils'
,
name:
'commons-dbutils'
,
version:
'1.2'
compile
group:
'commons-httpclient'
,
name:
'commons-httpclient'
,
version:
'3.1'
compile
group:
'commons-httpclient'
,
name:
'commons-httpclient'
,
version:
'3.1'
compile
group:
'it.geosolutions'
,
name:
'geoserver-manager'
,
version:
'1.5.1'
compile
group:
'it.geosolutions'
,
name:
'geoserver-manager'
,
version:
'1.5.1'
compile
group:
'javax.servlet'
,
name:
'servlet-api'
,
version:
'2.5'
compile
group:
'javax.servlet'
,
name:
'servlet-api'
,
version:
'2.5'
compile
group:
'org.cometd.java'
,
name:
'bayeux-api'
,
version:
'2.4.3'
compile
group:
'org.cometd.java'
,
name:
'bayeux-api'
,
version:
'2.4.3'
compile
group:
'org.cometd.java'
,
name:
'cometd-java-server'
,
version:
'2.4.3'
compile
group:
'org.cometd.java'
,
name:
'cometd-java-server'
,
version:
'2.4.3'
compile
group:
'org.cometd.javascript'
,
name:
'cometd-javascript-jquery'
,
version:
'2.4.3'
compile
group:
'org.cometd.javascript'
,
name:
'cometd-javascript-jquery'
,
version:
'2.4.3'
compile
group:
'org.json'
,
name:
'json'
,
version:
'20131018'
compile
group:
'org.json'
,
name:
'json'
,
version:
'20131018'
compile
group:
'org.postgis'
,
name:
'postgis-jdbc'
,
version:
'1.3.3'
compile
group:
'org.postgis'
,
name:
'postgis-jdbc'
,
version:
'1.3.3'
testCompile
'org.testng:testng:6+'
testCompile
'org.testng:testng:6+'
}
}
asciidoctor
{
asciidoctor
{
backend
=
'html5'
backend
=
'html5'
sourceDir
=
file
(
'doc'
)
sourceDir
=
file
(
'doc'
)
outputDir
=
file
(
"$buildDir/docs/asciidoctor"
)
outputDir
=
file
(
"$buildDir/docs/asciidoctor"
)
}
}
checkstyle
{
checkstyle
{
...
@@ -79,14 +96,36 @@ eclipse {
...
@@ -79,14 +96,36 @@ eclipse {
}
}
wtp
{
wtp
{
component
{
component
{
contextPath
=
'/isochrones'
contextPath
=
'/isochrones'
}
}
facet
{
facet
{
facet
name:
'jst.web'
,
version:
'3.0'
facet
name:
'jst.web'
,
version:
'3.0'
facet
name:
'jst.java'
,
version:
'1.7'
facet
name:
'jst.java'
,
version:
'1.7'
}
}
}
}
publishing
{
publications
{
mavenJava
(
MavenPublication
)
{
from
components
.
java
artifact
javadocJar
artifact
sourcesJar
artifact
staticJar
}
}
repositories
{
maven
{
credentials
{
username
repositoryUsername
password
repositoryPassword
}
url
repositoryPrefix
+
"${isRelease ? 'releases' : 'snapshots'}"
}
}
}
}
}
...
@@ -95,8 +134,32 @@ test {
...
@@ -95,8 +134,32 @@ test {
}
}
vagrant
{
vagrant
{
boxDir
=
vagrantDir
boxDir
=
vagrantDir
provider
=
'virtualbox'
provider
=
'virtualbox'
}
task
javadocJar
(
type:
Jar
,
dependsOn:
javadoc
)
{
description
=
'Builds a jar file including javadoc'
from
javadoc
.
destinationDir
classifier
"javadoc"
}
task
sourcesJar
(
type:
Jar
,
dependsOn:
classes
)
{
description
=
'Builds a jar file including sources'
from
sourceSets
.
main
.
allSource
classifier
"sources"
}
task
staticJar
(
type:
Jar
)
{
description
=
'Builds a jar file including all libraries'
from
sourceSets
.
main
.
output
from
{
configurations
.
compile
.
collect
{
it
.
isDirectory
()
?
it
:
zipTree
(
it
)
}
}
manifest
{
attributes
'Main-Class'
:
'de.krismer.tnfp.TrackNumberFromPlaylist'
}
classifier
"static"
}
}
task
testSimple
(
type:
Test
,
dependsOn:
testClasses
)
{
task
testSimple
(
type:
Test
,
dependsOn:
testClasses
)
{
...
@@ -111,8 +174,8 @@ task vagrantPrepare << {
...
@@ -111,8 +174,8 @@ task vagrantPrepare << {
if
(!
vagrantDir
.
isDirectory
())
{
if
(!
vagrantDir
.
isDirectory
())
{
println
"Creating directory $vagrantDir"
println
"Creating directory $vagrantDir"
vagrantDir
.
mkdirs
()
vagrantDir
.
mkdirs
()
}
}
sync
{
sync
{
from
files
(
'etc/vagrant'
)
from
files
(
'etc/vagrant'
)
...
@@ -122,8 +185,13 @@ task vagrantPrepare << {
...
@@ -122,8 +185,13 @@ task vagrantPrepare << {
vagrantDestroy
.
doFirst
{
vagrantDestroy
.
doFirst
{
if
(!
vagrantDir
.
isDirectory
())
{
if
(!
vagrantDir
.
isDirectory
())
{
throw
new
StopExecutionException
()
throw
new
StopExecutionException
()
}
}
}
}
vagrantUp
.
dependsOn
(
vagrantPrepare
)
vagrantUp
.
dependsOn
(
vagrantPrepare
)
task
jarAll
(
dependsOn:
[
jar
,
javadocJar
,
sourcesJar
,
staticJar
])
task
buildAll
(
dependsOn:
[
jarAll
,
build
])
This diff is collapsed.
Click to expand it.
gradle.properties
0 → 100644
+
3
−
0
View file @
f4239473
repositoryPrefix
=
https://server.krismer.de/nexus/content/repositories/
repositoryUsername
=
nexus
repositoryPassword
=
Nexus!190685
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment