This is an automated email from the ASF dual-hosted git repository.
ddekany pushed a commit to branch 2.3-gae
in repository https://gitbox.apache.org/repos/asf/freemarker.git
The following commit(s) were added to refs/heads/2.3-gae by this push:
new 05cc25c1 Build fixes: source package build has failed
05cc25c1 is described below
commit 05cc25c1df43b0bf65620d69fc95125966292bb7
Author: ddekany <[email protected]>
AuthorDate: Thu May 9 00:16:17 2024 +0200
Build fixes: source package build has failed
---
README.md | 6 +++---
build.gradle.kts | 1 +
.../src/main/kotlin/freemarker/build/FreemarkerRootExtension.kt | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/README.md b/README.md
index 692c84a7..a0509ee4 100644
--- a/README.md
+++ b/README.md
@@ -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
@@ -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):
diff --git a/build.gradle.kts b/build.gradle.kts
index 548df917..1cf06bbf 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -522,6 +522,7 @@ val distSrc = tasks.register<Tar>("distSrc") {
"osgi.bnd",
"rat-excludes",
"gradlew.bat",
+ "gradle.properties",
"gradle/**"
)
exclude(
diff --git
a/buildSrc/src/main/kotlin/freemarker/build/FreemarkerRootExtension.kt
b/buildSrc/src/main/kotlin/freemarker/build/FreemarkerRootExtension.kt
index 35dd452b..2656afa3 100644
--- a/buildSrc/src/main/kotlin/freemarker/build/FreemarkerRootExtension.kt
+++ b/buildSrc/src/main/kotlin/freemarker/build/FreemarkerRootExtension.kt
@@ -259,7 +259,7 @@ class FreemarkerRootExtension constructor(
.get()
val allowUnsignedReleaseBuild = context.providers
- .gradleProperty("allowUnsignedReleaseBuild")
+ .gradleProperty("freemarker.allowUnsignedReleaseBuild")
.map { it.toBoolean() }
.getOrElse(false)