1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128
|
Description: Provide a Groovy gradle build for testng
Author: Vladimir Petko <vladimir.petko@canonical.com>
Forwarded: not-needed
--- /dev/null
+++ b/build.gradle
@@ -0,0 +1,117 @@
+plugins {
+ id 'java-library'
+ id 'maven-publish'
+}
+
+repositories {
+ mavenLocal()
+}
+
+apply plugin: 'java'
+apply plugin: 'java-library'
+apply plugin: 'maven-publish'
+
+sourceCompatibility = 8
+targetCompatibility = 8
+
+dependencies {
+ compile 'org.slf4j:slf4j-api:1.7.36'
+ compile 'com.beust:jcommander:1.82'
+ compile 'org.apache.ant:ant:1.10.12'
+ compile 'com.google.inject:guice:5.1.0'
+ compile 'junit:junit:4.13.2'
+ compile 'org.yaml:snakeyaml:1.33'
+ compile 'org.assertj:assertj-core:2.3.0'
+}
+
+group = 'org.testng'
+version = System.env.DEB_VERSION_UPSTREAM
+description = 'testng'
+
+sourceSets {
+ main {
+ java {
+ srcDirs 'testng-runner-api/src/main/java'
+ srcDirs 'testng-core/src/main/java'
+ srcDirs 'testng-asserts/src/main/java'
+ srcDirs 'testng-core-api/src/main/java'
+ srcDirs 'testng-test-kit/src/main/java'
+ srcDirs 'testng-reflection-utils/src/main/java'
+ srcDirs 'testng-collections/src/main/java'
+ }
+ resources {
+ srcDirs 'testng-core/src/main/resources'
+ }
+ }
+}
+
+tasks {
+ jar {
+ manifest {
+ attributes(
+ "Specification-Title": rootProject.name,
+ "Specification-Version": version,
+ "Specification-Vendor" : rootProject.name,
+ "Implementation-Title" : rootProject.name,
+ "Implementation-Version": version,
+ "Implementation-Vendor" : rootProject.name,
+ "Implementation-Vendor-Id" : project.group,
+ "Implementation-Url": "https://testng.org",
+ "Automatic-Module-Name" : project.group,
+ "Bundle-ManifestVersion": "2",
+ "Bundle-Name": rootProject.name,
+ "Bundle-SymbolicName": project.group,
+ "Bundle-Vendor": rootProject.name,
+ "Bundle-License": "Apache-2.0",
+ "Bundle-Description": "Testing framework for Java",
+ "Bundle-Version": version,
+ "Import-Package" : """
+ bsh.*;version="[2.0.03.0.0)";resolution:=optional,
+ com.beust.jcommander.*;version="[1.7.03.0.0)";resolution:=optional,
+ com.google.inject.*;version="[1.21.3)";resolution:=optional,
+ junit.framework;version="[3.8.1 5.0.0)";resolution:=optional,
+ org.junit.*;resolution:=optional,
+ org.apache.tools.ant.*;version="[1.7.0 2.0.0)";resolution:=optional,
+ org.yaml.*;version="[1.62.0)";resolution:=optional,
+ *;resolution:=optional
+ """.replace(" ", "").replace("\n", ""),
+ "Export-Package" : """
+ org.testng,
+ org.testng.annotations,
+ org.testng.asserts,
+ org.testng.collections,
+ org.testng.internal,
+ org.testng.internal.annotations,
+ org.testng.internal.ant,
+ org.testng.internal.collections,
+ org.testng.internal.invokers,
+ org.testng.internal.invokers.objects,
+ org.testng.internal.junit,
+ org.testng.internal.objects,
+ org.testng.internal.objects.pojo,
+ org.testng.internal.reflect,
+ org.testng.internal.thread,
+ org.testng.internal.thread.graph,
+ org.testng.junit,
+ org.testng.log,
+ org.testng.log4testng,
+ org.testng.reporters,
+ org.testng.reporters.jq,
+ org.testng.reporters.util,
+ org.testng.thread,
+ org.testng.util,
+ org.testng.xml,
+ org.testng.xml.internal
+ """.replace(" ", "").replace("\n", " ")
+ )
+ }
+ }
+}
+
+publishing {
+ publications {
+ testng(MavenPublication) {
+ from(components.java)
+ }
+ }
+}
--- /dev/null
+++ b/settings.gradle
@@ -0,0 +1 @@
+rootProject.name = 'testng'
|