Debian Codegraph @

debian/patches/build.patch

raw symbols SCIP
1 Description: shortening build.gradle for a Debian build
2 Also removing the useJUnitPlatform() invocation, which is not understood by
3 the Debian-packaged gradle.
4 Author: Pierre Gruet <[email protected]>
5 Forwarded: not-needed
6 Last-Update: 2023-06-22
7
8 --- a/build.gradle
9 +++ b/build.gradle
10 @@ -5,16 +5,6 @@
11 id 'jacoco'
12 }
13
14 -java {
15 - toolchain {
16 - languageVersion = JavaLanguageVersion.of(8)
17 - vendor = JvmVendorSpec.ADOPTIUM // Temurin
18 - implementation = JvmImplementation.VENDOR_SPECIFIC
19 - }
20 - withSourcesJar()
21 - withJavadocJar()
22 -}
23 -
24 version = '3.1.0'
25
26 description = 'Grengine is an engine for running and embedding Groovy in a Java VM.'
27 @@ -88,102 +78,5 @@
28
29 test {
30 testLogging.showStandardStreams = true
31 - useJUnitPlatform()
32 finalizedBy(jacocoTestReport)
33 }
34 -
35 -jacocoTestReport {
36 - dependsOn(test)
37 -}
38 -
39 -publishing {
40 - publications {
41 - mavenJava(MavenPublication) {
42 - from components.java
43 - // purposely no dependency to Groovy generated since the group ID depends on the Groovy version...
44 - pom {
45 - name = 'grengine'
46 - description = project.description
47 - url = 'https://grengine.ch/'
48 - packaging project.ext.pkg
49 - licenses {
50 - license {
51 - name = 'The Apache Software License, Version 2.0'
52 - url = 'https://www.apache.org/licenses/LICENSE-2.0'
53 - distribution = 'repo'
54 - }
55 - }
56 - scm {
57 - url = 'https://github.com/alainstalder/grengine'
58 - connection = 'https://github.com/alainstalder/grengine.git'
59 - developerConnection = 'https://github.com/alainstalder/grengine.git'
60 - }
61 - developers {
62 - developer {
63 - id = 'alainstalder'
64 - name = 'Alain Stalder'
65 - email = '[email protected]'
66 - }
67 - }
68 - }
69 - }
70 - }
71 -
72 - repositories {
73 - mavenLocal()
74 - }
75 -}
76 -
77 -task copyMetadataModuleToLibs(type: Copy) {
78 - dependsOn(generateMetadataFileForMavenJavaPublication)
79 - dependsOn(generatePomFileForMavenJavaPublication)
80 - dependsOn(publishMavenJavaPublicationToMavenLocal)
81 - from layout.buildDirectory.dir('publications/mavenJava')
82 - into layout.buildDirectory.dir('libs')
83 - include 'module.json'
84 - rename 'module.json', "${project.name}-${project.version}.module"
85 -}
86 -
87 -task copyPomToLibs(type: Copy) {
88 - dependsOn(generateMetadataFileForMavenJavaPublication)
89 - dependsOn(generatePomFileForMavenJavaPublication)
90 - dependsOn(publishMavenJavaPublicationToMavenLocal)
91 - from layout.buildDirectory.dir('publications/mavenJava')
92 - into layout.buildDirectory.dir('libs')
93 - include 'pom-default.xml'
94 - rename 'pom-default.xml', "${project.name}-${project.version}.pom"
95 -}
96 -
97 -task copyJarsAndMetadataModuleAndPomToReleases(type: Copy) {
98 - dependsOn(jar)
99 - dependsOn(sourcesJar)
100 - dependsOn(javadocJar)
101 - dependsOn(copyMetadataModuleToLibs)
102 - dependsOn(copyPomToLibs)
103 - from layout.buildDirectory.dir('libs')
104 - into layout.buildDirectory.dir("releases/${project.version}")
105 - include '*.jar'
106 - include '*.pom'
107 - include '*.module'
108 -}
109 -
110 -task copyJavadocToReleases(type: Copy) {
111 - dependsOn(javadoc)
112 - from layout.buildDirectory.dir('docs/javadoc')
113 - into layout.buildDirectory.dir("releases/${project.version}/javadoc")
114 - include '**/*'
115 -}
116 -
117 -task copyJacocoToReleases(type: Copy) {
118 - dependsOn(jacocoTestReport)
119 - from layout.buildDirectory.dir('reports/jacoco/test/html')
120 - into layout.buildDirectory.dir("releases/${project.version}/jacoco")
121 - include '**/*'
122 -}
123 -
124 -task all {
125 - dependsOn(copyJarsAndMetadataModuleAndPomToReleases)
126 - dependsOn(copyJavadocToReleases)
127 - dependsOn(copyJacocoToReleases)
128 - dependsOn(publishToMavenLocal)
129 -}