build.gradle #5

  • //
  • guest/
  • paul_allen/
  • p4am/
  • build.gradle
  • View
  • Commits
  • Open Download .zip Download (1 KB)
/**
 * Copyright (C) 2015 Perforce Software. All rights reserved.
 *
 * Please see README-LICENSE.txt in top-level folder of this distribution.
 */


apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'

project.ext.ver = project.hasProperty('ver') ? project.ext.ver : 'ENGINEERING.BUILD' 
version = project.ext.ver

sourceCompatibility = 1.8
targetCompatibility = 1.8


repositories {
	mavenCentral()
}

dependencies {
    compile 'com.sparkjava:spark-core:2.2'
    compile 'com.sparkjava:spark-template-freemarker:2.0.0'
    compile 'com.sparkjava:spark-template-mustache:1.0.0'
    compile 'com.perforce:p4java:2014.1.965322'
    compile 'commons-fileupload:commons-fileupload:1.3.1'
    compile 'org.slf4j:slf4j-api:1.7.12'
    compile 'org.slf4j:slf4j-log4j12:1.7.12'
    compile 'com.google.code.gson:gson:2.3.1'
    compile 'org.apache.httpcomponents:httpclient:4.5'
    compile 'org.apache.commons:commons-exec:1.3'
    compile 'commons-pool:commons-pool:1.6'
}

jar {
	archiveName = baseName + '.jar'
	manifest { 
        attributes 'Main-Class': 'com.perforce.spark.Main',
			'Class-Path': '.',
			'Specification-Title': 'P4M',
			'Specification-Version': version,
			'Specification-Vendor': 'Perforce Software',
			'Implementation-Title': archiveName,
			'Implementation-Version': version,
			'Implementation-Vendor': 'Perforce Software'
	}  
	from {
		configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
	}
	exclude 'META-INF/*.RSA', 'META-INF/*.SF','META-INF/*.DSA' 
}
# Change User Description Committed
#5 15313 Paul Allen Added Client Workspace pool to manage parallel upload requests by the proxy (configuration set to 50).
 User uploads are restricted to only one per user.
#4 15221 Paul Allen Generate Gem index and submit after a deploy or proxy fetch event.
#3 15118 Paul Allen Added P4Search
#2 14181 Paul Allen Lots of updates and refactoring.
#1 14048 Paul Allen Convert to Gradle with FatJar and updated splash screen.