Clean up build files and remove dependency on local nexus repository
							parent
							
								
									53cc13b51b
								
							
						
					
					
						commit
						06526a16db
					
				|  | @ -5,9 +5,12 @@ plugins { | |||
| subprojects { proj -> | ||||
|     proj.afterEvaluate { | ||||
|         // Used to generate initial maven-dir layout | ||||
|         task "create-dirs" { description = "Create default maven directory structure" } << { | ||||
|             sourceSets*.java.srcDirs*.each { it.mkdirs() } | ||||
|             sourceSets*.resources.srcDirs*.each { it.mkdirs() } | ||||
|         task "create-dirs" { | ||||
|             description = "Create default maven directory structure" | ||||
|             doLast { | ||||
|                 sourceSets*.java.srcDirs*.each { it.mkdirs() } | ||||
|                 sourceSets*.resources.srcDirs*.each { it.mkdirs() } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  |  | |||
|  | @ -16,12 +16,6 @@ ext { isSnapshot = false } | |||
| 
 | ||||
| ext { | ||||
|     groupId = 'org.factcenter.meerkat' | ||||
|     nexusRepository = "https://cs.idc.ac.il/nexus/content/groups/${isSnapshot ? 'unstable' : 'public'}/" | ||||
| 
 | ||||
|     // Credentials for IDC nexus repositories (needed only for using unstable repositories and publishing) | ||||
|     // Should be set in ${HOME}/.gradle/gradle.properties | ||||
|     nexusUser =  project.hasProperty('nexusUser') ? project.property('nexusUser') : "" | ||||
|     nexusPassword = project.hasProperty('nexusPassword') ? project.property('nexusPassword') : "" | ||||
| } | ||||
| 
 | ||||
| description = "Meerkat Voting Common Library" | ||||
|  | @ -38,23 +32,10 @@ dependencies { | |||
|     compile project(':meerkat-common') | ||||
|     compile project(':restful-api-common') | ||||
| 
 | ||||
|     // Jersey for RESTful API | ||||
|     compile 'org.glassfish.jersey.containers:jersey-container-servlet:2.22.+' | ||||
| 
 | ||||
|     // Databases | ||||
|     compile 'org.xerial:sqlite-jdbc:3.7.+' | ||||
| 
 | ||||
|     // Logging | ||||
|     compile 'org.slf4j:slf4j-api:1.7.7' | ||||
|     runtime 'ch.qos.logback:logback-classic:1.1.2' | ||||
|     runtime 'ch.qos.logback:logback-core:1.1.2' | ||||
| 
 | ||||
|     // Google protobufs | ||||
|     compile 'com.google.protobuf:protobuf-java:3.+' | ||||
| 
 | ||||
|     // Crypto | ||||
|     compile 'org.factcenter.qilin:qilin:1.1+' | ||||
|     compile 'org.bouncycastle:bcprov-jdk15on:1.53' | ||||
|     compile 'org.bouncycastle:bcpkix-jdk15on:1.53' | ||||
| 
 | ||||
|     // Depend on test resources from meerkat-common | ||||
|     testCompile project(path: ':meerkat-common', configuration: 'testOutput') | ||||
| 
 | ||||
|  | @ -178,34 +159,22 @@ if (project.hasProperty('mainClassName') && (mainClassName != null)) { | |||
|  *===================================*/ | ||||
| 
 | ||||
| repositories { | ||||
| 
 | ||||
|     // Use local repo if possible | ||||
|     mavenLocal(); | ||||
| 
 | ||||
|     // Prefer the local nexus repository (it may have 3rd party artifacts not found in mavenCentral) | ||||
|     maven { | ||||
|         url nexusRepository | ||||
| 
 | ||||
|         if (isSnapshot) { | ||||
|             credentials { username | ||||
|                 password | ||||
| 
 | ||||
|                 username nexusUser | ||||
|                 password nexusPassword | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| 
 | ||||
|     // Use 'maven central' for other dependencies. | ||||
|     mavenCentral() | ||||
| } | ||||
| 
 | ||||
| task "info" << { | ||||
|     println "Project: ${project.name}" | ||||
|     println "Description: ${project.description}" | ||||
|     println "--------------------------" | ||||
|     println "GroupId: $groupId" | ||||
|     println "Version: $version (${isSnapshot ? 'snapshot' : 'release'})" | ||||
|     println "" | ||||
| task "info"  { | ||||
|     doLast { | ||||
|         println "Project: ${project.name}" | ||||
|         println "Description: ${project.description}" | ||||
|         println "--------------------------" | ||||
|         println "GroupId: $groupId" | ||||
|         println "Version: $version (${isSnapshot ? 'snapshot' : 'release'})" | ||||
|         println "" | ||||
|     } | ||||
| } | ||||
| info.description 'Print some information about project parameters' | ||||
| 
 | ||||
|  |  | |||
|  | @ -0,0 +1 @@ | |||
| ../gradlew | ||||
|  | @ -22,12 +22,6 @@ ext { isSnapshot = false } | |||
| 
 | ||||
| ext { | ||||
|         groupId = 'org.factcenter.meerkat' | ||||
|         nexusRepository = "https://cs.idc.ac.il/nexus/content/groups/${isSnapshot ? 'unstable' : 'public'}/" | ||||
|          | ||||
|         // Credentials for IDC nexus repositories (needed only for using unstable repositories and publishing) | ||||
|         // Should be set in ${HOME}/.gradle/gradle.properties | ||||
|         nexusUser =  project.hasProperty('nexusUser') ? project.property('nexusUser') : "" | ||||
|         nexusPassword = project.hasProperty('nexusPassword') ? project.property('nexusPassword') : "" | ||||
| } | ||||
| 
 | ||||
| description = "Bulletin-board server web application" | ||||
|  | @ -43,9 +37,6 @@ dependencies { | |||
|     compile project(':meerkat-common') | ||||
|     compile project(':restful-api-common') | ||||
| 
 | ||||
|     // Jersey for RESTful API | ||||
|     compile 'org.glassfish.jersey.containers:jersey-container-servlet:2.22.+' | ||||
| 
 | ||||
|     // JDBC connections | ||||
|     compile 'org.springframework:spring-jdbc:4.2.+' | ||||
|     compile 'org.xerial:sqlite-jdbc:3.8.+' | ||||
|  | @ -56,14 +47,6 @@ dependencies { | |||
|     // Servlets | ||||
|     compile 'javax.servlet:javax.servlet-api:3.0.+' | ||||
| 
 | ||||
|     // Logging | ||||
|     compile 'org.slf4j:slf4j-api:1.7.7' | ||||
|     runtime 'ch.qos.logback:logback-classic:1.1.2' | ||||
|     runtime 'ch.qos.logback:logback-core:1.1.2' | ||||
| 
 | ||||
|     // Google protobufs | ||||
|     compile 'com.google.protobuf:protobuf-java:3.+' | ||||
| 
 | ||||
|     // Depend on test resources from meerkat-common | ||||
|     testCompile project(path: ':meerkat-common', configuration: 'testOutput') | ||||
| 
 | ||||
|  | @ -220,13 +203,15 @@ repositories { | |||
|         mavenCentral() | ||||
| } | ||||
| 
 | ||||
| task "info" << { | ||||
| task "info" { | ||||
|     doLast { | ||||
|         println "Project: ${project.name}" | ||||
| println "Description: ${project.description}" | ||||
|         println "Description: ${project.description}" | ||||
|         println "--------------------------" | ||||
|         println "GroupId: $groupId" | ||||
|         println "Version: $version (${isSnapshot ? 'snapshot' : 'release'})" | ||||
|         println "" | ||||
|     } | ||||
| } | ||||
| info.description 'Print some information about project parameters' | ||||
| 
 | ||||
|  |  | |||
|  | @ -21,12 +21,6 @@ ext { isSnapshot = false } | |||
| 
 | ||||
| ext { | ||||
|         groupId = 'org.factcenter.meerkat' | ||||
|         nexusRepository = "https://cs.idc.ac.il/nexus/content/groups/${isSnapshot ? 'unstable' : 'public'}/" | ||||
|          | ||||
|         // Credentials for IDC nexus repositories (needed only for using unstable repositories and publishing) | ||||
|         // Should be set in ${HOME}/.gradle/gradle.properties | ||||
|         nexusUser =  project.hasProperty('nexusUser') ? project.property('nexusUser') : "" | ||||
|         nexusPassword = project.hasProperty('nexusPassword') ? project.property('nexusPassword') : "" | ||||
| } | ||||
| 
 | ||||
| description = "TODO: Add a description" | ||||
|  | @ -41,14 +35,6 @@ dependencies { | |||
|     // Meerkat common | ||||
|     compile project(':meerkat-common') | ||||
| 
 | ||||
|     // Logging | ||||
|     compile 'org.slf4j:slf4j-api:1.7.7' | ||||
|     runtime 'ch.qos.logback:logback-classic:1.1.2' | ||||
|     runtime 'ch.qos.logback:logback-core:1.1.2' | ||||
| 
 | ||||
|     // Google protobufs | ||||
|     compile 'com.google.protobuf:protobuf-java:3.+' | ||||
| 
 | ||||
|     // Depend on test resources from meerkat-common | ||||
|     testCompile project(path: ':meerkat-common', configuration: 'testOutput') | ||||
| 
 | ||||
|  | @ -99,7 +85,7 @@ idea { | |||
| 
 | ||||
|             def srcDir = "${protobuf.generatedFilesBaseDir}/$sourceSet.name/java" | ||||
| 
 | ||||
|             println "Adding $srcDir" | ||||
| //            println "Adding $srcDir" | ||||
|             // add protobuf generated sources to generated source dir. | ||||
|             if ("test".equals(sourceSet.name)) { | ||||
|                 testSourceDirs += file(srcDir) | ||||
|  | @ -158,21 +144,6 @@ if (project.hasProperty('mainClassName') && (mainClassName != null)) { | |||
|  *===================================*/ | ||||
| 
 | ||||
| repositories { | ||||
|          | ||||
|         // Prefer the local nexus repository (it may have 3rd party artifacts not found in mavenCentral) | ||||
|         maven {  | ||||
|             url nexusRepository | ||||
|              | ||||
|             if (isSnapshot) { | ||||
|                 credentials { username  | ||||
|                     password  | ||||
| 
 | ||||
|                     username nexusUser | ||||
|                     password nexusPassword  | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         // Use local maven repository | ||||
|         mavenLocal() | ||||
| 
 | ||||
|  | @ -180,13 +151,15 @@ repositories { | |||
|         mavenCentral() | ||||
| } | ||||
| 
 | ||||
| task "info" << { | ||||
| task "info"  { | ||||
|     doLast { | ||||
|         println "Project: ${project.name}" | ||||
| println "Description: ${project.description}" | ||||
|         println "Description: ${project.description}" | ||||
|         println "--------------------------" | ||||
|         println "GroupId: $groupId" | ||||
|         println "Version: $version (${isSnapshot ? 'snapshot' : 'release'})" | ||||
|         println "" | ||||
|     } | ||||
| } | ||||
| info.description 'Print some information about project parameters' | ||||
| 
 | ||||
|  |  | |||
|  | @ -20,12 +20,6 @@ ext { isSnapshot = false } | |||
| 
 | ||||
| ext { | ||||
|         groupId = 'org.factcenter.meerkat' | ||||
|         nexusRepository = "https://cs.idc.ac.il/nexus/content/groups/${isSnapshot ? 'unstable' : 'public'}/" | ||||
|          | ||||
|         // Credentials for IDC nexus repositories (needed only for using unstable repositories and publishing) | ||||
|         // Should be set in ${HOME}/.gradle/gradle.properties | ||||
|         nexusUser =  project.hasProperty('nexusUser') ? project.property('nexusUser') : "" | ||||
|         nexusPassword = project.hasProperty('nexusPassword') ? project.property('nexusPassword') : "" | ||||
| } | ||||
| 
 | ||||
| description = "Meerkat Voting Common Library" | ||||
|  | @ -39,10 +33,12 @@ version += "${isSnapshot ? '-SNAPSHOT' : ''}" | |||
| dependencies { | ||||
|     // Logging | ||||
|     compile 'org.slf4j:slf4j-api:1.7.7' | ||||
|     compile 'javax.ws.rs:javax.ws.rs-api:2.0.+' | ||||
|     runtime 'ch.qos.logback:logback-classic:1.1.2' | ||||
|     runtime 'ch.qos.logback:logback-core:1.1.2' | ||||
| 
 | ||||
|     // RESTful API | ||||
|     compile 'javax.ws.rs:javax.ws.rs-api:2.0.+' | ||||
| 
 | ||||
|     // Google protobufs | ||||
|     compile 'com.google.protobuf:protobuf-java:3.+' | ||||
| 
 | ||||
|  | @ -50,7 +46,7 @@ dependencies { | |||
|     compile 'com.google.guava:guava:15.0' | ||||
| 
 | ||||
|     // Crypto | ||||
|     compile 'org.factcenter.qilin:qilin:1.2.+' | ||||
|     compile 'org.factcenter.qilin:qilin:1.3.+' | ||||
|     compile 'org.bouncycastle:bcprov-jdk15on:1.53' | ||||
| 
 | ||||
|     testCompile 'junit:junit:4.+' | ||||
|  | @ -157,32 +153,20 @@ task fatCapsule(type: FatCapsule){ | |||
| repositories { | ||||
| 
 | ||||
|         mavenLocal(); | ||||
|          | ||||
|         // Prefer the local nexus repository (it may have 3rd party artifacts not found in mavenCentral) | ||||
|         maven {  | ||||
|             url nexusRepository | ||||
|              | ||||
|             if (isSnapshot) { | ||||
|                 credentials { username  | ||||
|                     password  | ||||
| 
 | ||||
|                     username nexusUser | ||||
|                     password nexusPassword  | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         // Use 'maven central' for other dependencies. | ||||
|         mavenCentral() | ||||
| } | ||||
| 
 | ||||
| task "info" << { | ||||
| task "info" { | ||||
|     doLast { | ||||
|         println "Project: ${project.name}" | ||||
| println "Description: ${project.description}" | ||||
|         println "Description: ${project.description}" | ||||
|         println "--------------------------" | ||||
|         println "GroupId: $groupId" | ||||
|         println "Version: $version (${isSnapshot ? 'snapshot' : 'release'})" | ||||
|         println "" | ||||
|     } | ||||
| } | ||||
| info.description 'Print some information about project parameters' | ||||
| 
 | ||||
|  |  | |||
|  | @ -21,12 +21,6 @@ ext { isSnapshot = false } | |||
| 
 | ||||
| ext { | ||||
|         groupId = 'org.factcenter.meerkat' | ||||
|         nexusRepository = "https://cs.idc.ac.il/nexus/content/groups/${isSnapshot ? 'unstable' : 'public'}/" | ||||
|          | ||||
|         // Credentials for IDC nexus repositories (needed only for using unstable repositories and publishing) | ||||
|         // Should be set in ${HOME}/.gradle/gradle.properties | ||||
|         nexusUser =  project.hasProperty('nexusUser') ? project.property('nexusUser') : "" | ||||
|         nexusPassword = project.hasProperty('nexusPassword') ? project.property('nexusPassword') : "" | ||||
| } | ||||
| 
 | ||||
| description = "Mix network implementation" | ||||
|  | @ -41,17 +35,6 @@ dependencies { | |||
|     // Meerkat common | ||||
|     compile project(':meerkat-common') | ||||
| 
 | ||||
|     // Logging | ||||
|     compile 'org.slf4j:slf4j-api:1.7.7' | ||||
|     runtime 'ch.qos.logback:logback-classic:1.1.2' | ||||
|     runtime 'ch.qos.logback:logback-core:1.1.2' | ||||
| 
 | ||||
|     // Google protobufs | ||||
|     compile 'com.google.protobuf:protobuf-java:3.+' | ||||
| 
 | ||||
|     // Crypto | ||||
|     compile 'org.factcenter.qilin:qilin:1.2.+' | ||||
| 
 | ||||
|     // Command-line parsing. | ||||
|     compile 'net.sf.jopt-simple:jopt-simple:6.+' | ||||
| 
 | ||||
|  | @ -87,7 +70,7 @@ idea { | |||
| 
 | ||||
|             def srcDir = "${protobuf.generatedFilesBaseDir}/$sourceSet.name/java" | ||||
| 
 | ||||
|             println "Adding $srcDir" | ||||
| //            println "Adding $srcDir" | ||||
|             // add protobuf generated sources to generated source dir. | ||||
|             if ("test".equals(sourceSet.name)) { | ||||
|                 testSourceDirs += file(srcDir) | ||||
|  | @ -146,21 +129,6 @@ if (project.hasProperty('mainClassName') && (mainClassName != null)) { | |||
|  *===================================*/ | ||||
| 
 | ||||
| repositories { | ||||
|          | ||||
|         // Prefer the local nexus repository (it may have 3rd party artifacts not found in mavenCentral) | ||||
|         maven {  | ||||
|             url nexusRepository | ||||
|              | ||||
|             if (isSnapshot) { | ||||
|                 credentials { username  | ||||
|                     password  | ||||
| 
 | ||||
|                     username nexusUser | ||||
|                     password nexusPassword  | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         // Use local maven repository | ||||
|         mavenLocal() | ||||
| 
 | ||||
|  | @ -168,13 +136,15 @@ repositories { | |||
|         mavenCentral() | ||||
| } | ||||
| 
 | ||||
| task "info" << { | ||||
| task "info"  { | ||||
|     doLast { | ||||
|         println "Project: ${project.name}" | ||||
| println "Description: ${project.description}" | ||||
|         println "Description: ${project.description}" | ||||
|         println "--------------------------" | ||||
|         println "GroupId: $groupId" | ||||
|         println "Version: $version (${isSnapshot ? 'snapshot' : 'release'})" | ||||
|         println "" | ||||
|     } | ||||
| } | ||||
| info.description 'Print some information about project parameters' | ||||
| 
 | ||||
|  |  | |||
|  | @ -22,12 +22,6 @@ ext { isSnapshot = false } | |||
| 
 | ||||
| ext { | ||||
|         groupId = 'org.factcenter.meerkat' | ||||
|         nexusRepository = "https://cs.idc.ac.il/nexus/content/groups/${isSnapshot ? 'unstable' : 'public'}/" | ||||
|          | ||||
|         // Credentials for IDC nexus repositories (needed only for using unstable repositories and publishing) | ||||
|         // Should be set in ${HOME}/.gradle/gradle.properties | ||||
|         nexusUser =  project.hasProperty('nexusUser') ? project.property('nexusUser') : "" | ||||
|         nexusPassword = project.hasProperty('nexusPassword') ? project.property('nexusPassword') : "" | ||||
| } | ||||
| 
 | ||||
| description = "Meerkat polling-station application" | ||||
|  | @ -43,21 +37,10 @@ dependencies { | |||
|     compile project(':meerkat-common') | ||||
|     compile project(':restful-api-common') | ||||
| 
 | ||||
|     // Jersey for RESTful API | ||||
|     compile 'org.glassfish.jersey.containers:jersey-container-servlet:2.5.+' | ||||
| 
 | ||||
|     // Servlets | ||||
|     compile 'org.eclipse.jetty:jetty-server:9.3.+' | ||||
|     compile 'org.eclipse.jetty:jetty-servlet:9.3.+' | ||||
| 
 | ||||
|     // Logging | ||||
|     compile 'org.slf4j:slf4j-api:1.7.7' | ||||
|     runtime 'ch.qos.logback:logback-classic:1.1.2' | ||||
|     runtime 'ch.qos.logback:logback-core:1.1.2' | ||||
| 
 | ||||
|     // Google protobufs | ||||
|     compile 'com.google.protobuf:protobuf-java:3.+' | ||||
| 
 | ||||
|     testCompile 'junit:junit:4.+' | ||||
| 
 | ||||
|     runtime 'org.codehaus.groovy:groovy:2.4.+' | ||||
|  | @ -137,21 +120,6 @@ if (project.hasProperty('mainClassName') && (mainClassName != null)) { | |||
|  *===================================*/ | ||||
| 
 | ||||
| repositories { | ||||
|          | ||||
|         // Prefer the local nexus repository (it may have 3rd party artifacts not found in mavenCentral) | ||||
|         maven {  | ||||
|             url nexusRepository | ||||
|              | ||||
|             if (isSnapshot) { | ||||
|                 credentials { username  | ||||
|                     password  | ||||
| 
 | ||||
|                     username nexusUser | ||||
|                     password nexusPassword  | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         // Use local maven repository | ||||
|         mavenLocal() | ||||
| 
 | ||||
|  | @ -159,13 +127,15 @@ repositories { | |||
|         mavenCentral() | ||||
| } | ||||
| 
 | ||||
| task "info" << { | ||||
| task "info"  { | ||||
|     doLast { | ||||
|         println "Project: ${project.name}" | ||||
| println "Description: ${project.description}" | ||||
|         println "Description: ${project.description}" | ||||
|         println "--------------------------" | ||||
|         println "GroupId: $groupId" | ||||
|         println "Version: $version (${isSnapshot ? 'snapshot' : 'release'})" | ||||
|         println "" | ||||
|     } | ||||
| } | ||||
| info.description 'Print some information about project parameters' | ||||
| 
 | ||||
|  |  | |||
|  | @ -19,12 +19,6 @@ ext { isSnapshot = false } | |||
| 
 | ||||
| ext { | ||||
|         groupId = 'org.factcenter.meerkat' | ||||
|         nexusRepository = "https://cs.idc.ac.il/nexus/content/groups/${isSnapshot ? 'unstable' : 'public'}/" | ||||
|          | ||||
|         // Credentials for IDC nexus repositories (needed only for using unstable repositories and publishing) | ||||
|         // Should be set in ${HOME}/.gradle/gradle.properties | ||||
|         nexusUser =  project.hasProperty('nexusUser') ? project.property('nexusUser') : "" | ||||
|         nexusPassword = project.hasProperty('nexusPassword') ? project.property('nexusPassword') : "" | ||||
| } | ||||
| 
 | ||||
| description = "Common classes for implementing Meerkat's RESTful API" | ||||
|  | @ -42,14 +36,6 @@ dependencies { | |||
|     // Jersey for RESTful API | ||||
|     compile 'org.glassfish.jersey.containers:jersey-container-servlet:2.22.+' | ||||
| 
 | ||||
|     // Logging | ||||
|     compile 'org.slf4j:slf4j-api:1.7.7' | ||||
|     runtime 'ch.qos.logback:logback-classic:1.1.2' | ||||
|     runtime 'ch.qos.logback:logback-core:1.1.2' | ||||
| 
 | ||||
|     // Google protobufs | ||||
|     compile 'com.google.protobuf:protobuf-java:3.+' | ||||
| 
 | ||||
|     testCompile 'junit:junit:4.+' | ||||
| 
 | ||||
|     runtime 'org.codehaus.groovy:groovy:2.4.+' | ||||
|  | @ -95,21 +81,6 @@ idea { | |||
|  *===================================*/ | ||||
| 
 | ||||
| repositories { | ||||
|          | ||||
|         // Prefer the local nexus repository (it may have 3rd party artifacts not found in mavenCentral) | ||||
|         maven {  | ||||
|             url nexusRepository | ||||
|              | ||||
|             if (isSnapshot) { | ||||
|                 credentials { username  | ||||
|                     password  | ||||
| 
 | ||||
|                     username nexusUser | ||||
|                     password nexusPassword  | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         // Use local maven repository | ||||
|         mavenLocal() | ||||
| 
 | ||||
|  | @ -117,13 +88,15 @@ repositories { | |||
|         mavenCentral() | ||||
| } | ||||
| 
 | ||||
| task "info" << { | ||||
| task "info" { | ||||
|     doLast { | ||||
|         println "Project: ${project.name}" | ||||
| println "Description: ${project.description}" | ||||
|         println "Description: ${project.description}" | ||||
|         println "--------------------------" | ||||
|         println "GroupId: $groupId" | ||||
|         println "Version: $version (${isSnapshot ? 'snapshot' : 'release'})" | ||||
|         println "" | ||||
|     } | ||||
| } | ||||
| info.description 'Print some information about project parameters' | ||||
| 
 | ||||
|  |  | |||
|  | @ -20,12 +20,6 @@ ext { isSnapshot = false } | |||
| 
 | ||||
| ext { | ||||
|         groupId = 'org.factcenter.meerkat' | ||||
|         nexusRepository = "https://cs.idc.ac.il/nexus/content/groups/${isSnapshot ? 'unstable' : 'public'}/" | ||||
|          | ||||
|         // Credentials for IDC nexus repositories (needed only for using unstable repositories and publishing) | ||||
|         // Should be set in ${HOME}/.gradle/gradle.properties | ||||
|         nexusUser =  project.hasProperty('nexusUser') ? project.property('nexusUser') : "" | ||||
|         nexusPassword = project.hasProperty('nexusPassword') ? project.property('nexusPassword') : "" | ||||
| } | ||||
| 
 | ||||
| description = "Meerkat voting booth application" | ||||
|  | @ -41,22 +35,11 @@ dependencies { | |||
|     compile project(':meerkat-common') | ||||
|     compile project(':restful-api-common') | ||||
| 
 | ||||
|     // Jersey for RESTful API | ||||
|     compile 'org.glassfish.jersey.containers:jersey-container-servlet:2.5.+' | ||||
| 
 | ||||
|     // Servlets | ||||
|     compile group: 'org.eclipse.jetty', name: 'jetty-server', version: '9.3.+' | ||||
|     compile 'org.eclipse.jetty:jetty-server:9.3.+' | ||||
|     compile 'org.eclipse.jetty:jetty-servlet:9.3.+' | ||||
| 
 | ||||
|     // Logging | ||||
|     compile 'org.slf4j:slf4j-api:1.7.7' | ||||
|     runtime 'ch.qos.logback:logback-classic:1.1.2' | ||||
|     runtime 'ch.qos.logback:logback-core:1.1.2' | ||||
| 
 | ||||
|     // Google protobufs | ||||
|     compile 'com.google.protobuf:protobuf-java:3.+' | ||||
| 
 | ||||
|     testCompile 'junit:junit:4.+' | ||||
| 
 | ||||
|     runtime 'org.codehaus.groovy:groovy:2.4.+' | ||||
|  | @ -140,21 +123,6 @@ if (project.hasProperty('mainClassName') && (mainClassName != null)) { | |||
|  *===================================*/ | ||||
| 
 | ||||
| repositories { | ||||
|          | ||||
|         // Prefer the local nexus repository (it may have 3rd party artifacts not found in mavenCentral) | ||||
|         maven {  | ||||
|             url nexusRepository | ||||
|              | ||||
|             if (isSnapshot) { | ||||
|                 credentials { username  | ||||
|                     password  | ||||
| 
 | ||||
|                     username nexusUser | ||||
|                     password nexusPassword  | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
| 
 | ||||
|         // Use local maven repository | ||||
|         mavenLocal() | ||||
| 
 | ||||
|  | @ -162,13 +130,15 @@ repositories { | |||
|         mavenCentral() | ||||
| } | ||||
| 
 | ||||
| task "info" << { | ||||
| task "info" { | ||||
|     doLast { | ||||
|         println "Project: ${project.name}" | ||||
| println "Description: ${project.description}" | ||||
|         println "Description: ${project.description}" | ||||
|         println "--------------------------" | ||||
|         println "GroupId: $groupId" | ||||
|         println "Version: $version (${isSnapshot ? 'snapshot' : 'release'})" | ||||
|         println "" | ||||
|     } | ||||
| } | ||||
| info.description 'Print some information about project parameters' | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue