@@ -9,92 +9,16 @@ buildscript {
99}
1010
1111apply plugin : ' java'
12- apply plugin : ' maven'
1312apply plugin : ' jacoco'
1413apply plugin : ' com.github.kt3k.coveralls'
1514
16- group= ' com.codeborne'
15+ group = ' com.codeborne'
1716archivesBaseName = ' pdf-test'
18- version= ' 1.6.1'
19-
20- [compileJava, compileTestJava]* . options. collect {options -> options. encoding = ' UTF-8' }
21- [compileJava, compileTestJava]* . options. collect {options -> options. debug = true }
22- compileJava. options. debugOptions. debugLevel = " source,lines,vars"
23-
24- sourceCompatibility = 1.8
25- targetCompatibility = 1.8
17+ version = ' 1.7.0'
2618
2719defaultTasks ' test' , ' install'
2820
29- dependencies {
30- implementation group : ' org.apache.pdfbox' , name : ' pdfbox' , version : ' 2.0.24' , transitive : true
31- implementation group : ' org.hamcrest' , name : ' hamcrest-core' , version : ' 1.3' , transitive : false
32- testImplementation group : ' junit' , name : ' junit' , version : ' 4.13.2' , transitive : false
33- testImplementation group : ' org.hamcrest' , name : ' hamcrest-all' , version : ' 1.3' , transitive : false
34- implementation group : ' org.assertj' , name : ' assertj-core' , version : ' 3.21.0' , transitive : false
35- }
36-
37- repositories {
38- mavenCentral()
39- }
40-
41- task libsProd (type : Sync ) {
42- from configurations. compileClasspath
43- into " $buildDir /lib-prod"
44- }
45-
46- task libsTest (type : Sync ) {
47- from configurations. testRuntimeClasspath - configurations. compileClasspath
48- into " $buildDir /lib-test"
49- }
50-
51- compileJava. dependsOn libsProd, libsTest
52-
53- test {
54- include ' com/codeborne/pdftest/**/*'
55- systemProperties[' file.encoding' ] = ' UTF-8'
56- testLogging. showStandardStreams = true
57- jacoco {
58- enabled = true
59- }
60- }
61-
62- jar {
63- manifest {
64- attributes(
65- " Implementation-Title" : project. group + ' .' + project. name,
66- " Implementation-Version" : version,
67- " Implementation-Vendor" : " Codeborne" )
68- }
69- }
70-
71- task sourcesJar (type : Jar , dependsOn :classes) {
72- classifier = ' sources'
73- from sourceSets. main. allSource
74- }
75-
76- javadoc {
77- failOnError= false
78- }
79-
80- task javadocJar (type : Jar , dependsOn :javadoc) {
81- classifier = ' javadoc'
82- from javadoc. destinationDir
83- }
84-
85- artifacts {
86- archives jar
87- archives sourcesJar
88- archives javadocJar
89- }
90-
91- jacocoTestReport {
92- reports {
93- xml. enabled true
94- html. enabled true
95- }
96- }
97-
98- tasks. coveralls {
99- onlyIf { System . env. ' CI' }
100- }
21+ apply from : file(' gradle/compilation.gradle' )
22+ apply from : file(' gradle/dependencies.gradle' )
23+ apply from : file(' gradle/tests.gradle' )
24+ apply from : file(' gradle/publish.gradle' )
0 commit comments