Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openbis
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sispub
openbis
Commits
37711073
Commit
37711073
authored
11 years ago
by
anttil
Browse files
Options
Downloads
Patches
Plain Diff
SWE-22 / SP-641: default build settings for java projects
SVN: 28922
parent
ccb376ff
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build_resources/gradle/javaproject.gradle
+0
-96
0 additions, 96 deletions
build_resources/gradle/javaproject.gradle
with
0 additions
and
96 deletions
build_resources/gradle/javaproject.gradle
deleted
100644 → 0
+
0
−
96
View file @
ccb376ff
apply
plugin:
'java'
sourceCompatibility
=
'1.6'
targetCompatibility
=
'1.6'
sourceSets
{
main
{
java
{
srcDirs
=
[
'source/java'
]
}
resources
{
srcDirs
=
[
'resource'
]
}
}
test
{
java
{
srcDirs
=
[
'sourceTest/java'
]
}
}
}
buildDir
=
'out'
repositories
{
ivy
{
url
'../ivy-repository'
layout
"pattern"
,
{
artifact
"[organisation]/[module]/[revision]/[artifact]-[revision].[ext]"
ivy
"[organisation]/[module]/[revision]/ivy.xml"
}
}
}
test
{
useTestNG
()
options
{
suites
(
file
(
'sourceTest/java/tests.xml'
))
}
jvmArgs
'-Xmx2048m'
,
'-XX:MaxPermSize=256m'
testLogging
.
showStandardStreams
=
true
}
task
sourceJar
(
type:
Jar
)
{
from
sourceSets
.
main
.
allJava
}
configurations
{
ecj
}
dependencies
{
ecj
"eclipse:ecj:3.8.1"
}
compileJava
{
options
.
encoding
=
'utf-8'
options
.
fork
=
true
doFirst
{
options
.
forkOptions
.
with
{
executable
=
'java'
jvmArgs
=
[
'-cp'
,
configurations
.
ecj
.
asPath
,
'org.eclipse.jdt.internal.compiler.batch.Main'
,
'-source'
,
'1.6'
]
}
}
}
compileTestJava
{
options
.
encoding
=
'utf-8'
options
.
fork
=
true
doFirst
{
options
.
forkOptions
.
with
{
executable
=
'java'
jvmArgs
=
[
'-cp'
,
configurations
.
ecj
.
asPath
,
'org.eclipse.jdt.internal.compiler.batch.Main'
,
'-source'
,
'1.6'
]
}
}
}
configurations
.
all
{
resolutionStrategy
.
cacheChangingModulesFor
0
,
'hours'
}
apply
plugin:
'eclipse'
eclipse
{
classpath
{
downloadSources
=
true
defaultOutputDir
=
file
(
'targets'
)
}
}
eclipse
.
classpath
.
file
{
whenMerged
{
classpath
->
def
projectRefs
=
classpath
.
entries
.
findAll
{
entry
->
entry
.
kind
==
'src'
&&
entry
.
path
.
startsWith
(
'/'
)}
classpath
.
entries
.
removeAll
(
projectRefs
)
classpath
.
entries
.
addAll
(
projectRefs
)
}
}
\ No newline at end of file
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