Skip to content

Commit 5113f94

Browse files
committed
release pdf-test 2.0.0
* upgrade to Java 11+ * Publish jars to Maven Central instead of OSS
1 parent 0a221ab commit 5113f94

File tree

7 files changed

+35
-63
lines changed

7 files changed

+35
-63
lines changed

CHANGELOG.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
== Changelog
22

3-
=== 2.0.0 (under construction)
4-
* upgrade to Java 17+
3+
=== 2.0.0 (released 01.07.2025)
4+
* upgrade to Java 11+
5+
* Bump pdfbox from 3.0.4 to 3.0.5
6+
* Publish jars to Maven Central instead of OSS
57

68
=== 1.9.2 (released 05.02.2025)
79
* support "as" error description in AssertJ (#61)

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ If you use **Maven**, add the following dependency to pom.xml:
5757
<dependency>
5858
<groupId>com.codeborne</groupId>
5959
<artifactId>pdf-test</artifactId>
60-
<version>1.9.2</version>
60+
<version>2.0.0</version>
6161
<scope>test</scope>
6262
</dependency>
6363
```
6464

6565
If you use **Gradle**, add the following dependency to build.gradle:
6666

6767
```groovy
68-
testImplementation 'com.codeborne:pdf-test:1.9.2'
68+
testImplementation 'com.codeborne:pdf-test:2.0.0'
6969
```
7070

7171
## How to contribute

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,12 @@ plugins {
99
id 'java-library'
1010
id 'jacoco'
1111
id 'com.github.kt3k.coveralls' version '2.12.2'
12+
id "com.vanniktech.maven.publish" version "0.33.0"
1213
}
1314

1415
group = 'com.codeborne'
1516
archivesBaseName = 'pdf-test'
16-
version = '2.0.0-SNAPSHOT'
17+
version = '2.0.0'
1718

1819
defaultTasks 'test', 'install'
1920

gradle.properties

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
11
org.gradle.jvmargs=-Dfile.encoding=UTF-8
2+
3+
mavenCentralPublishing=true
4+
mavenCentralAutomaticPublishing=true
5+
signAllPublications=true

gradle/compilation.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
[compileJava, compileTestJava]*.options.collect {options -> options.debug = true}
33
compileJava.options.debugOptions.debugLevel = "source,lines,vars"
44

5-
sourceCompatibility = 1.8
6-
targetCompatibility = 1.8
5+
sourceCompatibility = 11
6+
targetCompatibility = 11

gradle/publish.gradle

Lines changed: 21 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -24,66 +24,31 @@ task javadocJar(type: Jar, dependsOn: javadoc) {
2424
}
2525

2626
if (project.hasProperty("signing.keyId")) {
27-
apply plugin: 'signing'
28-
apply plugin: 'maven-publish'
29-
30-
signing {
31-
afterEvaluate {
32-
sign publishing.publications.mavenJava
33-
}
34-
}
35-
36-
artifacts {
37-
archives jar
38-
archives sourcesJar
39-
archives javadocJar
40-
}
41-
42-
publishing {
43-
repositories {
44-
maven {
45-
name 'Maven'
46-
url project.version.endsWith("-SNAPSHOT") ?
47-
'https://oss.sonatype.org/content/repositories/snapshots/' :
48-
'https://oss.sonatype.org/service/local/staging/deploy/maven2/'
49-
credentials {
50-
username "$sonatypeUsername"
51-
password "$sonatypePassword"
27+
mavenPublishing {
28+
pom {
29+
name = "pdf-test"
30+
description = "PDF Test: PDF testing library"
31+
inceptionYear = "2015"
32+
url = "https://github.com/codeborne/pdf-test"
33+
licenses {
34+
license {
35+
name = "MIT"
36+
url = "https://opensource.org/licenses/MIT"
37+
distribution = "https://opensource.org/licenses/MIT"
5238
}
5339
}
54-
}
55-
publications {
56-
mavenJava(MavenPublication) {
57-
groupId "${project.group}"
58-
artifactId "${project.name}"
59-
60-
from components.java
61-
artifact(sourcesJar)
62-
artifact(javadocJar)
63-
64-
pom {
65-
name = archivesBaseName
66-
description = 'PDF Test: PDF testing library'
67-
url = 'https://github.com/codeborne/pdf-test'
68-
licenses {
69-
license {
70-
name = 'MIT'
71-
url = 'https://opensource.org/licenses/MIT'
72-
}
73-
}
74-
developers {
75-
developer {
76-
id = 'asolntsev'
77-
name = 'Andrei Solntsev'
78-
}
79-
}
80-
scm {
81-
connection = 'scm:git@github.com:codeborne/pdf-test.git'
82-
developerConnection = 'scm:git@github.com:codeborne/pdf-test.git'
83-
url = 'https://github.com/codeborne/pdf-test'
84-
}
40+
developers {
41+
developer {
42+
id = 'asolntsev'
43+
name = 'Andrei Solntsev'
44+
url = "https://github.com/asolntsev/"
8545
}
8646
}
47+
scm {
48+
url = "https://github.com/codeborne/pdf-test"
49+
connection = "scm:git:git://github.com/codeborne/pdf-test.git"
50+
developerConnection = "scm:git:ssh://git@github.com/codeborne/pdf-test.git"
51+
}
8752
}
8853
}
8954
}
70.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)