Commit Graph

144 Commits

Author SHA1 Message Date
Alan Orth 692a62b454
src/main/java: update curation tasks README.md
Add eperson ID to curation invocation. DSpace 7 requires this.
2024-04-29 09:33:39 +03:00
Alan Orth d4ca92066a
Version 7.6.1.2 2024-04-25 12:58:07 +03:00
Alan Orth 5ad8c556e9
src/main/java: simplify curation task results
We don't need to print the Handle because some items can be in the
workflow still so this will be null, but also because DSpace will
already show the Handle in the log before printing the result.
2024-04-25 12:53:15 +03:00
Alan Orth 77425c13bf
src/main/java: remove report() from curation tasks
Results are a single-line status that shows the result of the task,
but reports are like a running log of changes to the item and have
more complicated use cases and configuration requirements.

For now I will disable reports since I'm not using them.
2024-04-25 12:51:30 +03:00
Alan Orth 5e0a456fb5
README.md: fix links 2024-04-23 14:28:27 +03:00
Alan Orth 9050caf37f
Version 7.6.1.1
Unsure of the versioning, but something tells me I should follow
the upstream DSpace versioning to keep things simple.
2024-04-23 13:11:12 +03:00
Alan Orth 639148dc19
src/main/java: minor update to ctasks README.md 2024-04-23 13:08:52 +03:00
Alan Orth 369f81d181
README.md: minor updates 2024-04-23 13:08:34 +03:00
Alan Orth 7a91305742
Add new NormalizeDOIs curation task 2024-04-23 13:07:55 +03:00
Alan Orth b15dd50c16
pom.xml: upgrade all maven plugins to latest 2024-04-23 08:10:05 +03:00
Alan Orth 0c35e81362
pom.xml: compile for Java 11
New as of JDK 9:

> The --release option ensures that the code is compiled following the rules of the programming language of the specified release, and that generated classes target the release as well as the public API of that release. This means that, unlike the -source and -target options, the compiler will detect and generate an error when using APIs that don't exist in previous releases of Java SE.

Also, as of DSpace 7 we the minimum JDK is 11 anyway.

See: https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html
2024-04-23 08:05:59 +03:00
Alan Orth 2fb8d274c9
pom.xml: fix developer connection scm link
Not sure what this is used for, but the link is wrong.
2024-04-23 07:58:27 +03:00
Alan Orth 169b063e9a
pom.xml: use https for GitHub link 2024-04-23 07:55:53 +03:00
Alan Orth 0cb533b2c4
Fix license headers
I meant to use GPL-3.0-only.
2024-04-22 16:59:12 +03:00
Alan Orth ee6518035e
Bump version to 7.6.1 2024-01-02 20:34:14 +03:00
Alan Orth 14051984f3
pom.xml: downgrade gson to v2.9.0
Downgrade gson to avoid dependency convergence issues in DSpace.
2024-01-02 20:28:19 +03:00
Alan Orth 9faf657c59
Bump version to 7.6-SNAPSHOT 2024-01-02 19:54:46 +03:00
Alan Orth 7fb78c2722
src/main/java: minor refactoring
Suggested by IntelliJ.
2024-01-02 19:34:51 +03:00
Alan Orth 6ef9f521bf
src/main/resources: fix trailing comma in JSON 2024-01-02 18:03:52 +03:00
Alan Orth 1a345de36a
pom.xml: fix missing Handle jar
It seems Handle jars are not published on Maven Central so we get
this error while packaging:

    [ERROR] Failed to execute goal on project cgspace-java-helpers: Could not resolve dependencies for project io.github.ilri.cgspace:cgspace-java-helpers:jar:7.6-SNAPSHOT: net.handle:handle:jar:9.3.0 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

This is probably related to DSpace 7.x using a vanilla Handle jar
instead of the customized one.
2024-01-02 16:56:43 +03:00
Alan Orth eb66ccbd0d
.idea/misc.xml: use Java 17
Latest IDEA configuration after updating settings in the IDE.
2023-12-28 10:49:42 +03:00
Alan Orth 62138540ae
.github/workflows/maven.yml: update setup actions 2023-12-28 10:37:55 +03:00
Alan Orth c0d0e40321
.github/workflows/maven.yml: use Java 17 2023-12-28 10:36:14 +03:00
Alan Orth f2a637f0a8
.github/workflows/maven.yml: dspace7 branch 2023-12-28 10:35:32 +03:00
Alan Orth 6e38a2f7e1
pom.xml: update dependencies
Package builds. Haven't tested releasing.
2023-12-28 10:33:44 +03:00
Alan Orth f9d7e5f6a2
src/main/java: minor refactor
Use isEmpty() instead of checking size.
2023-12-28 10:26:11 +03:00
Alan Orth 9e965afdb7
src/main/java: change getSize() to getSizeBytes()
Apparently this changed in DSpace 7. Untested, but it compiles now.
2023-12-28 10:18:40 +03:00
Alan Orth 408a0e1c19
src/main/java: update log4j usage
Untested, but compiles.
2023-12-28 10:17:24 +03:00
Alan Orth ea9f669e9c
pom.xml: use dspace-api 7.6.1 2023-12-28 10:16:16 +03:00
Alan Orth 546101bc92
CHANGELOG.md: Add notes about new common names 2023-02-26 21:16:46 +03:00
Alan Orth 0a7cf7bf59
Import iso-codes snapshot
After my merge request to Debian's iso-codes package was merged we
now no longer need to maintain local overrides for Iran, Laos, and
Syria, as those are officially in iso-codes.

See: https://salsa.debian.org/iso-codes-team/iso-codes/-/merge_requests/32
2023-02-26 21:13:44 +03:00
Alan Orth 8c0a8fbcd1
Bump version to 6.2-SNAPSHOT
I can't figure out how to get non-snapshot releases on Central.
2023-02-21 10:59:54 +03:00
Alan Orth c05a2e4f96
Version 6.2 2023-02-20 20:37:40 +03:00
Alan Orth cf2af393c0
CHANGELOG.md: add note about iso-codes 4.12.0 2022-11-07 12:23:07 +03:00
Alan Orth 1f6ba4af67
src: import iso-codes 4.12.0
This updates the name for TR from "Turkey" to "Türkiye".

See: https://salsa.debian.org/iso-codes-team/iso-codes/-/blob/main/CHANGELOG.md#4120-2022-11-06
2022-11-07 12:21:39 +03:00
Alan Orth 5ceaebaeae
README.md: add more TODO 2022-10-31 11:49:39 +03:00
Alan Orth f3dcc6e261
pom.xml: bump version to 6.2-SNAPSHOT 2022-10-31 11:47:13 +03:00
Alan Orth 3eddbc3e22
Version 6.1 2022-10-31 11:43:54 +03:00
Alan Orth dbf59f784c
README.md: add notes on deploying to Maven Central 2022-10-31 11:40:59 +03:00
Alan Orth 0ffa4c8d37
pom.xml: fix version of maven-deploy-plugin 2022-10-31 11:37:25 +03:00
Alan Orth 970d0c074e
README.md: reference DSpace 6 docs 2022-10-31 11:11:50 +03:00
Alan Orth 6b2b899957
CHANGELOG.md: add note about iso-codes 4.11.0 2022-10-14 20:51:04 +03:00
Alan Orth dfaa234a90
src/main/resources: sync cgspace-countries.json with iso-codes
Not sure this is needed, but we copy the JSON object from iso-codes
so we should keep it in sync when there are changes to countries we
override.
2022-10-14 20:49:23 +03:00
Alan Orth f46e81b8cd
src/main/resources: import iso-codes 4.11.0
This is a bit old by now even, but there are two changes:

- South Korea
- North Korea
2022-10-14 20:47:26 +03:00
Alan Orth dbd8721579
src: add better status messages to FixLowQualityThumbnails 2022-10-07 15:33:13 +03:00
Alan Orth a234b39064
CHANGELOG.md: add note about script commit fix 2022-10-07 14:56:58 +03:00
Alan Orth 80a336f94d
src: fix context commit in scripts
I was wondering why the same bitstreams appeared to be getting de-
leted on every single run. It turns out that the only mode we were
committing the context in was in single item mode. If the argument
was a site, community, or collection we were updating the item but
not actually committing the changes!
2022-10-07 14:49:58 +03:00
Alan Orth 5ebf4930cf
src: re-organize switch statements in scripts
It makes more sense to me to start from the top level of the hier-
archy.
2022-10-07 13:11:03 +03:00
Alan Orth 8e01595cc1
.github: fix distribution key 2022-10-06 20:47:14 +03:00
Alan Orth 8b3aac610d
.github: specify Java distribution 2022-10-06 20:39:31 +03:00