Skip to content

Commit

Permalink
Build fixes: source package build has failed
Browse files Browse the repository at this point in the history
  • Loading branch information
ddekany committed May 8, 2024
1 parent 8a22785 commit 05cc25c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,8 @@ To run all JUnit tests and some other checks, issue `./gradlew check`. (Avoid th
To generate documentation, issue `./gradlew javadoc` and `./gradlew manualOffline`.

To build the distribution artifacts (the `tgz`-s that people can download), run `./gradlew build`. However,
for a stable (non-`SNAPSHOT`) version number, you must set up signing, or disable that verification;
see `gradle.properties` in this project for those!
for a stable (non-`SNAPSHOT`) version number, you must set up signing, or disable that verification
with `freemarker.allowUnsignedReleaseBuild=true`; see `gradle.properties` in this project for those!

Reproducible builds: If the resulting `freemarker.jar` is not identical with the official jar, see the build environment
in the `.buildinfo` file packed into the official source distribution, and also into the Maven "sources" artifact! At
Expand All @@ -143,7 +143,7 @@ least with identical Java versions, the resulting `freemarker.jar` meant to matc
To see how the project would be deployed to Maven Central, issue
`./gradlew publishAllPublicationsToLocalRepository`,
and check the `build/local-deployment` directory.

To publish to the Apache Maven Repository (from where you can also promote releases to the Maven Central Repository)
issue `.\gradlew publish`. Note that for this the following Gradle properties must be properly set
(in `gradle.properties`, or pass them via `-P<name>=<value>` arguments):
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,7 @@ val distSrc = tasks.register<Tar>("distSrc") {
"osgi.bnd",
"rat-excludes",
"gradlew.bat",
"gradle.properties",
"gradle/**"
)
exclude(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class FreemarkerRootExtension constructor(
.get()

val allowUnsignedReleaseBuild = context.providers
.gradleProperty("allowUnsignedReleaseBuild")
.gradleProperty("freemarker.allowUnsignedReleaseBuild")
.map { it.toBoolean() }
.getOrElse(false)

Expand Down

0 comments on commit 05cc25c

Please sign in to comment.