// // Gradle project to build the p4bugzilla bridge utility // // Warwick Hunter 2016-11-22 apply plugin:'java' archivesBaseName = "p4bugzilla" sourceCompatibility = 7 targetCompatibility = 7 repositories { mavenCentral() } dependencies { compile 'commons-httpclient:commons-httpclient:3.1' compile 'commons-logging:commons-logging:1.1.3' compile 'commons-codec:commons-codec:1.9' compile 'com.google.code.gson:gson:2.3' compile fileTree(dir:'lib', include:'*.jar') testCompile 'junit:junit:4.+' } // Set the source layout to match the existing project structure sourceSets { main { java { srcDir 'src' } } } tasks.withType(JavaCompile) { options.compilerArgs.add "-Xlint:deprecation" } defaultTasks 'jar' jar { manifest { attributes 'Implementation-Title': 'P4 Bugzilla Bridge', 'Implementation-Vendor': 'Promptu Systems Corporation', 'Implementation-Version': '2.0' } } task listJars << { def jars = configurations.compile jars.each { File file -> if (file.path.contains("junit")) { return } printf "%s ", file.path } }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 21161 | Warwick Hunter |
P4 Bugzilla v2.1 - Use the new Bugzilla REST API instead of the old XMLRPC API. - Use the latest P4 Java API. - Build with gradle and gradlew. - Integrate with the latest systemd Linux daemon startup environment found on Fedora 21+ systems. - Simplified the code to focus on just the job at hand. |