Merge pull request #1 in ST/ch.psi.daq.rest from atest74 to master
# By Zellweger Christof Ralf # Via Zellweger Christof Ralf * commit 'a26dd2424d44c12dd5af8892207b4a08ceb76fcd': ATEST-74: - setup gradle multibuild
This commit is contained in:
8
.project
8
.project
@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<projectDescription>
|
<projectDescription>
|
||||||
<name>rest</name>
|
<name>ch.psi.daq.rest</name>
|
||||||
<comment></comment>
|
<comment></comment>
|
||||||
<projects>
|
<projects>
|
||||||
</projects>
|
</projects>
|
||||||
@ -10,8 +10,14 @@
|
|||||||
<arguments>
|
<arguments>
|
||||||
</arguments>
|
</arguments>
|
||||||
</buildCommand>
|
</buildCommand>
|
||||||
|
<buildCommand>
|
||||||
|
<name>org.springframework.ide.eclipse.core.springbuilder</name>
|
||||||
|
<arguments>
|
||||||
|
</arguments>
|
||||||
|
</buildCommand>
|
||||||
</buildSpec>
|
</buildSpec>
|
||||||
<natures>
|
<natures>
|
||||||
|
<nature>org.springframework.ide.eclipse.core.springnature</nature>
|
||||||
<nature>org.springsource.ide.eclipse.gradle.core.nature</nature>
|
<nature>org.springsource.ide.eclipse.gradle.core.nature</nature>
|
||||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||||
</natures>
|
</natures>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences
|
#org.springsource.ide.eclipse.gradle.core.preferences.GradleProjectPreferences
|
||||||
#Tue May 26 17:48:59 CEST 2015
|
#Wed Jun 10 13:28:05 CEST 2015
|
||||||
build.family.org.gradle.tooling.model.eclipse.HierarchicalEclipseProject=;
|
build.family.org.gradle.tooling.model.eclipse.HierarchicalEclipseProject=;
|
||||||
org.springsource.ide.eclipse.gradle.linkedresources=
|
org.springsource.ide.eclipse.gradle.linkedresources=
|
||||||
org.springsource.ide.eclipse.gradle.rootprojectloc=
|
org.springsource.ide.eclipse.gradle.rootprojectloc=../ch.psi.daq.buildall
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
#Wed May 27 10:41:51 CEST 2015
|
#Wed Jun 10 14:12:23 CEST 2015
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
org.eclipse.jdt.core.compiler.compliance=1.8
|
org.eclipse.jdt.core.compiler.compliance=1.8
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
|
38
build.gradle
38
build.gradle
@ -1,49 +1,15 @@
|
|||||||
apply plugin: 'java'
|
|
||||||
apply plugin: 'eclipse'
|
|
||||||
|
|
||||||
sourceCompatibility = 1.8
|
|
||||||
version = '1.0.0'
|
version = '1.0.0'
|
||||||
group = 'ch.psi.daq'
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenLocal()
|
|
||||||
mavenCentral()
|
|
||||||
maven { url "http://slsyoke4.psi.ch:8081/artifactory/libs-releases" }
|
|
||||||
maven { url "http://slsyoke4.psi.ch:8081/artifactory/libs-snapshots" }
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile 'ch.psi.daq:cassandra:1.0.0'
|
compile project(':ch.psi.daq.cassandra')
|
||||||
compile 'org.springframework.boot:spring-boot-starter-web:1.2.3.RELEASE'
|
compile 'org.springframework.boot:spring-boot-starter-web:1.2.3.RELEASE'
|
||||||
compile 'org.apache.commons:commons-lang3:3.4'
|
compile 'org.apache.commons:commons-lang3:3.4'
|
||||||
testCompile group: 'junit', name: 'junit', version: '4.+'
|
|
||||||
}
|
|
||||||
|
|
||||||
apply plugin: 'maven'
|
|
||||||
|
|
||||||
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
||||||
classifier = 'sources'
|
|
||||||
from sourceSets.main.allSource
|
|
||||||
}
|
|
||||||
|
|
||||||
task javadocJar(type: Jar, dependsOn: javadoc) {
|
|
||||||
classifier = 'javadoc'
|
|
||||||
from javadoc.destinationDir
|
|
||||||
}
|
|
||||||
|
|
||||||
artifacts {
|
|
||||||
archives sourcesJar
|
|
||||||
archives javadocJar
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uploadArchives {
|
uploadArchives {
|
||||||
repositories {
|
repositories {
|
||||||
mavenDeployer {
|
mavenDeployer {
|
||||||
repository(url: "http://slsyoke4.psi.ch:8081/artifactory/libs-snapshots-local"){
|
|
||||||
authentication(userName: "upload", password: "{DESede}eWKHxAtQ2Dc=")
|
|
||||||
}
|
|
||||||
pom.groupId = 'ch.psi.daq'
|
|
||||||
pom.artifactId = 'rest'
|
pom.artifactId = 'rest'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -24,7 +24,7 @@ import org.springframework.context.annotation.ComponentScan;
|
|||||||
* Finally, the main() method consists of single static call to
|
* Finally, the main() method consists of single static call to
|
||||||
* SpringApplication.run().
|
* SpringApplication.run().
|
||||||
* <p>
|
* <p>
|
||||||
* Methods annotated with {@link @Bean} are Java beans that are
|
* Methods annotated with @Bean are Java beans that are
|
||||||
* container-managed, i.e. managed by Spring. Whenever there are @Autowire, @Inject
|
* container-managed, i.e. managed by Spring. Whenever there are @Autowire, @Inject
|
||||||
* or similar annotations found in the code (which is being scanned through the @ComponentScan
|
* or similar annotations found in the code (which is being scanned through the @ComponentScan
|
||||||
* annotation), the container then knows how to create those beans and inject
|
* annotation), the container then knows how to create those beans and inject
|
||||||
|
Reference in New Issue
Block a user