Skip to content

Commit fc64650

Browse files
committed
initial import of empty gradle project
1 parent 63e7f58 commit fc64650

File tree

5 files changed

+234
-0
lines changed

5 files changed

+234
-0
lines changed

build.gradle

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
buildscript {
2+
project.ext['CERN_VM'] = System.getProperty('CERN_TECHNET_VM') ?: System.getenv('CERN_TECHNET_VM') ?: project.hasProperty('CERN_TECHNET_VM') ?: false
3+
project.ext['DEPLOYMENT'] = System.getProperty('DEPLOYMENT') ?: false
4+
5+
repositories {
6+
if (project['CERN_VM']) {
7+
maven { url 'http://artifactory.cern.ch/ds-jcenter' }
8+
maven { url 'http://artifactory.cern.ch/development' }
9+
maven { url 'http://artifactory.cern.ch/gradle-plugins' }
10+
} else {
11+
gradlePluginPortal()
12+
}
13+
}
14+
15+
dependencies {
16+
classpath 'com.github.jk1:gradle-license-report:1.5'
17+
classpath 'io.github.gradle-nexus:publish-plugin:1.0.0'
18+
classpath 'biz.aQute.bnd:biz.aQute.bnd.gradle:5.1.2' // OSGi
19+
classpath 'biz.aQute.bnd:biz.aQute.bndlib:5.1.2' // OSGi
20+
}
21+
}
22+
23+
apply plugin: 'java'
24+
apply plugin: 'jacoco'
25+
apply plugin: 'idea'
26+
apply plugin: 'eclipse'
27+
apply plugin: 'biz.aQute.bnd.builder' // OSGi
28+
29+
group = project['POM.groupId']
30+
31+
repositories {
32+
if (project['CERN_VM']) {
33+
maven { url 'http://artifactory.cern.ch/ds-jcenter' }
34+
maven { url 'http://artifactory.cern.ch/development' }
35+
} else {
36+
mavenCentral()
37+
}
38+
}
39+
40+
dependencies {
41+
implementation group: 'org.tensorics', name: 'tensorics-core', version: '0.29.0'
42+
implementation group: 'com.google.code.gson', name:'gson', version: '2.9.1'
43+
44+
testCompile group: 'junit', name: 'junit', version: '4.12'
45+
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.17.2'
46+
testCompile group: 'org.mockito', name: 'mockito-core', version: '2.23.0'
47+
}
48+
49+
wrapper {
50+
gradleVersion = '5.4.1'
51+
distributionType = Wrapper.DistributionType.ALL
52+
}
53+
54+
jar {
55+
// OSGi
56+
bnd([
57+
'Bundle-Vendor' : 'ossgang',
58+
'-exportcontents': '*',
59+
'-buildpath' : '' // no dependencies
60+
])
61+
}
62+
63+
test {
64+
testLogging {
65+
events "passed", "skipped", "failed"
66+
exceptionFormat "full"
67+
}
68+
}
69+
70+
jacoco {
71+
toolVersion = "0.8.3"
72+
}
73+
74+
jacocoTestReport {
75+
reports {
76+
xml.enabled true
77+
xml.destination file("$buildDir/reports/jacoco/report.xml")
78+
html.enabled true
79+
csv.enabled false
80+
}
81+
}
82+
83+
javadoc { options.encoding = "UTF-8" }
84+
85+
if (!project.tasks.findByName("javadocJar")) {
86+
task javadocJar(type: Jar) {
87+
classifier = 'javadoc'
88+
from javadoc
89+
}
90+
}
91+
92+
if (!project.tasks.findByName("sourcesJar")) {
93+
task sourcesJar(type: Jar) {
94+
classifier = 'sources'
95+
from sourceSets.main.allSource
96+
}
97+
}
98+
99+
eclipse {
100+
classpath {
101+
downloadJavadoc = true
102+
downloadSources = true
103+
}
104+
}
105+
106+
idea {
107+
module {
108+
downloadJavadoc = true
109+
downloadSources = true
110+
}
111+
}
112+
113+
if (!project['CERN_VM']) {
114+
println 'Applying licensing report'
115+
apply plugin: 'com.github.jk1.dependency-license-report'
116+
117+
licenseReport {
118+
renderers = [this.class.classLoader.loadClass('com.github.jk1.license.render.InventoryHtmlReportRenderer').newInstance()]
119+
filters = [this.class.classLoader.loadClass('com.github.jk1.license.filter.LicenseBundleNormalizer').newInstance()]
120+
}
121+
}
122+
123+
if (project['DEPLOYMENT']) {
124+
println 'Applying deployment scripts'
125+
apply from: 'https://raw.githubusercontent.com/ossgang/gradle-scripts/master/deployment/deploy-to-maven-central.gradle'
126+
}

gradle.properties

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
POM.groupId=org.tensorics
2+
POM.artifactId=tensorics-gson
3+
POM.description=GSON bindings for tensorics objects
4+
5+
INFO.repo=https://github.com/tensorics/tensorics-gson.git
6+
INFO.url=https://tensorics.github.io/
7+
INFO.github=https://github.com/tensorics/tensorics-gson
8+
INFO.githubIssues=https://github.com/tensorics/tensorics-gson/issues
9+
INFO.licenseNameShort=Apache-2.0
10+
INFO.licenseName=The Apache License, Version 2.0
11+
INFO.licenseUrl=http://www.apache.org/licenses/LICENSE-2.0.txt
12+
INFO.mainDeveloper=tensorics-developers
13+
INFO.mainDeveloperEmail[email protected]
14+
INFO.organization=tensorics
15+
16+
SONATYPE.repoUrl=https://s01.oss.sonatype.org/service/local/
17+
SONATYPE.repoSnapshotsUrl=https://s01.oss.sonatype.org/content/repositories/snapshots/
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Tue Aug 04 16:33:23 CEST 2020
2+
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
3+
distributionBase=GRADLE_USER_HOME
4+
distributionPath=wrapper/dists
5+
zipStorePath=wrapper/dists
6+
zipStoreBase=GRADLE_USER_HOME

gradlew.bat

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
@if "%DEBUG%" == "" @echo off
2+
@rem ##########################################################################
3+
@rem
4+
@rem Gradle startup script for Windows
5+
@rem
6+
@rem ##########################################################################
7+
8+
@rem Set local scope for the variables with windows NT shell
9+
if "%OS%"=="Windows_NT" setlocal
10+
11+
set DIRNAME=%~dp0
12+
if "%DIRNAME%" == "" set DIRNAME=.
13+
set APP_BASE_NAME=%~n0
14+
set APP_HOME=%DIRNAME%
15+
16+
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
17+
set DEFAULT_JVM_OPTS=
18+
19+
@rem Find java.exe
20+
if defined JAVA_HOME goto findJavaFromJavaHome
21+
22+
set JAVA_EXE=java.exe
23+
%JAVA_EXE% -version >NUL 2>&1
24+
if "%ERRORLEVEL%" == "0" goto init
25+
26+
echo.
27+
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
28+
echo.
29+
echo Please set the JAVA_HOME variable in your environment to match the
30+
echo location of your Java installation.
31+
32+
goto fail
33+
34+
:findJavaFromJavaHome
35+
set JAVA_HOME=%JAVA_HOME:"=%
36+
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
37+
38+
if exist "%JAVA_EXE%" goto init
39+
40+
echo.
41+
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
42+
echo.
43+
echo Please set the JAVA_HOME variable in your environment to match the
44+
echo location of your Java installation.
45+
46+
goto fail
47+
48+
:init
49+
@rem Get command-line arguments, handling Windows variants
50+
51+
if not "%OS%" == "Windows_NT" goto win9xME_args
52+
53+
:win9xME_args
54+
@rem Slurp the command line arguments.
55+
set CMD_LINE_ARGS=
56+
set _SKIP=2
57+
58+
:win9xME_args_slurp
59+
if "x%~1" == "x" goto execute
60+
61+
set CMD_LINE_ARGS=%*
62+
63+
:execute
64+
@rem Setup the command line
65+
66+
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
67+
68+
@rem Execute Gradle
69+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
70+
71+
:end
72+
@rem End local scope for the variables with windows NT shell
73+
if "%ERRORLEVEL%"=="0" goto mainEnd
74+
75+
:fail
76+
rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
77+
rem the _cmd.exe /c_ return code!
78+
if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
79+
exit /b 1
80+
81+
:mainEnd
82+
if "%OS%"=="Windows_NT" endlocal
83+
84+
:omega

settings.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rootProject.name = 'tensorics-gson'

0 commit comments

Comments
 (0)