Compare commits
No commits in common. "c04fa16307f5ba2285f54c6e065c4a5bc99c92fa" and "0b24f08cb1d6c3e4e3457128231c8c6f38b5feed" have entirely different histories.
c04fa16307
...
0b24f08cb1
11 changed files with 60 additions and 51 deletions
16
.github/workflows/bld.yml
vendored
16
.github/workflows/bld.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
name: bld-ci
|
name: bld-ci
|
||||||
|
|
||||||
on: [ push, pull_request, workflow_dispatch ]
|
on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-bld-project:
|
build-bld-project:
|
||||||
|
@ -8,25 +8,29 @@ jobs:
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
java-version: [ 17, 21, 22 ]
|
java-version: [17, 21, 22]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source repository
|
- name: Checkout source repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK ${{ matrix.java-version }}
|
- name: Set up JDK ${{ matrix.java-version }}
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: "zulu"
|
||||||
java-version: ${{ matrix.java-version }}
|
java-version: ${{ matrix.java-version }}
|
||||||
|
|
||||||
- name: Download dependencies
|
- name: Grant execute permission for bld
|
||||||
|
run: chmod +x bld
|
||||||
|
|
||||||
|
- name: Download the dependencies
|
||||||
run: ./bld download
|
run: ./bld download
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests with bld
|
||||||
run: >-
|
run: >-
|
||||||
./bld compile test
|
./bld compile test
|
||||||
-DtestsBadgeUrl=https://rife2.com/tests-badge/update/com.uwyn.rife2/rife2-renderers
|
-DtestsBadgeUrl=https://rife2.com/tests-badge/update/com.uwyn.rife2/rife2-renderers
|
||||||
-DtestsBadgeApiKey=${{ secrets.TESTS_BADGE_API_KEY }}
|
-DtestsBadgeApiKey=${{ secrets.TESTS_BADGE_API_KEY }}
|
||||||
|
|
||||||
|
|
12
.github/workflows/pages.yml
vendored
12
.github/workflows/pages.yml
vendored
|
@ -3,7 +3,7 @@ name: javadocs-pages
|
||||||
on:
|
on:
|
||||||
# Runs on pushes targeting the default branch
|
# Runs on pushes targeting the default branch
|
||||||
push:
|
push:
|
||||||
branches: ["master"]
|
branches: [ "master" ]
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -30,14 +30,14 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source repository
|
- name: Checkout source repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK 17
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: "zulu"
|
distribution: 'zulu'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
|
||||||
- name: Build Javadocs
|
- name: Build Javadocs
|
||||||
|
@ -50,8 +50,8 @@ jobs:
|
||||||
uses: actions/upload-pages-artifact@v1
|
uses: actions/upload-pages-artifact@v1
|
||||||
with:
|
with:
|
||||||
# Upload generated Javadocs repository
|
# Upload generated Javadocs repository
|
||||||
path: "build/javadoc/"
|
path: 'build/javadoc/'
|
||||||
|
|
||||||
- name: Deploy to GitHub Pages
|
- name: Deploy to GitHub Pages
|
||||||
id: deployment
|
id: deployment
|
||||||
uses: actions/deploy-pages@v1
|
uses: actions/deploy-pages@v1
|
19
.github/workflows/publish.yml
vendored
19
.github/workflows/publish.yml
vendored
|
@ -3,7 +3,7 @@ name: Publish to the Maven Central/Rife2
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
release:
|
release:
|
||||||
types: [released]
|
types: [ released ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-bld-project:
|
build-bld-project:
|
||||||
|
@ -11,23 +11,26 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source repository
|
- name: Checkout source repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v3
|
||||||
with:
|
with:
|
||||||
distribution: "temurin"
|
distribution: 'temurin'
|
||||||
java-version: 17
|
java-version: 17
|
||||||
|
|
||||||
- name: Download dependencies
|
- name: Grant execute permission for bld
|
||||||
|
run: chmod +x bld
|
||||||
|
|
||||||
|
- name: Download the dependencies
|
||||||
run: ./bld download
|
run: ./bld download
|
||||||
|
|
||||||
- name: Import key
|
- name: Import key
|
||||||
run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import
|
run: echo "${{ secrets.SIGN_SECRET_KEY }}" | gpg --batch --import
|
||||||
|
|
||||||
- name: Publish
|
- name: Publish with bld
|
||||||
run: >-
|
run: >-
|
||||||
./bld compile test publish
|
./bld compile test publish
|
||||||
-DtestsBadgeUrl=https://rife2.com/tests-badge/update/com.uwyn.rife2/rife2-renderers
|
-DtestsBadgeUrl=https://rife2.com/tests-badge/update/com.uwyn.rife2/rife2-renderers
|
||||||
|
@ -38,6 +41,6 @@ jobs:
|
||||||
-DsonatypePassword=${{ secrets.SONATYPE_PASSWORD }}
|
-DsonatypePassword=${{ secrets.SONATYPE_PASSWORD }}
|
||||||
-DsignKey=${{ secrets.SIGN_KEY }}
|
-DsignKey=${{ secrets.SIGN_KEY }}
|
||||||
-DsignPassphrase=${{ secrets.SIGN_PASSPHRASE }}
|
-DsignPassphrase=${{ secrets.SIGN_PASSPHRASE }}
|
||||||
|
|
||||||
- name: Delete GnuPG data
|
- name: Delete GnuPG data
|
||||||
run: rm -rfv $HOME/.gnupg
|
run: rm -rfv $HOME/.gnupg
|
||||||
|
|
6
.idea/bld.xml
generated
6
.idea/bld.xml
generated
|
@ -1,6 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<project version="4">
|
|
||||||
<component name="BldConfiguration">
|
|
||||||
<events />
|
|
||||||
</component>
|
|
||||||
</project>
|
|
4
.idea/libraries/bld.xml
generated
4
.idea/libraries/bld.xml
generated
|
@ -2,12 +2,12 @@
|
||||||
<library name="bld">
|
<library name="bld">
|
||||||
<CLASSES>
|
<CLASSES>
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
<root url="jar://$USER_HOME$/.bld/dist/bld-2.0.1.jar!/" />
|
<root url="jar://$USER_HOME$/.bld/dist/bld-1.9.0.jar!/" />
|
||||||
</CLASSES>
|
</CLASSES>
|
||||||
<JAVADOC />
|
<JAVADOC />
|
||||||
<SOURCES>
|
<SOURCES>
|
||||||
<root url="file://$PROJECT_DIR$/lib/bld" />
|
<root url="file://$PROJECT_DIR$/lib/bld" />
|
||||||
<root url="jar://$USER_HOME$/.bld/dist/bld-2.0.1-sources.jar!/" />
|
<root url="jar://$USER_HOME$/.bld/dist/bld-1.9.0-sources.jar!/" />
|
||||||
</SOURCES>
|
</SOURCES>
|
||||||
<excluded>
|
<excluded>
|
||||||
<root url="jar://$PROJECT_DIR$/lib/bld/bld-wrapper.jar!/" />
|
<root url="jar://$PROJECT_DIR$/lib/bld/bld-wrapper.jar!/" />
|
||||||
|
|
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
|
@ -9,7 +9,7 @@
|
||||||
],
|
],
|
||||||
"java.configuration.updateBuildConfiguration": "automatic",
|
"java.configuration.updateBuildConfiguration": "automatic",
|
||||||
"java.project.referencedLibraries": [
|
"java.project.referencedLibraries": [
|
||||||
"${HOME}/.bld/dist/bld-2.0.1.jar",
|
"${HOME}/.bld/dist/bld-1.9.0.jar",
|
||||||
"lib/**/*.jar"
|
"lib/**/*.jar"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[](https://opensource.org/licenses/Apache-2.0)
|
[](https://opensource.org/licenses/Apache-2.0)
|
||||||
[](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
|
[](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html)
|
||||||
[](https://rife2.com/bld)
|
[](https://rife2.com/bld)
|
||||||
[](https://github.com/rife2/rife2-template-renderers/releases/latest)
|
[](https://github.com/rife2/rife2-template-renderers/releases/latest)
|
||||||
[](https://repo.rife2.com/#/releases/com/uwyn/rife2/rife2-renderers)
|
[](https://repo.rife2.com/#/releases/com/uwyn/rife2/rife2-renderers)
|
||||||
[](https://central.sonatype.com/artifact/com.uwyn.rife2/rife2-renderers/)
|
[](https://central.sonatype.com/artifact/com.uwyn.rife2/rife2-renderers/)
|
||||||
|
|
|
@ -19,13 +19,19 @@
|
||||||
</properties>
|
</properties>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
|
<rule ref="category/java/bestpractices.xml/ReplaceHashtableWithMap">
|
||||||
|
<properties>
|
||||||
|
<property name="violationSuppressXPath" value="//ClassOrInterfaceDeclaration['java.util.Properties']"/>
|
||||||
|
</properties>
|
||||||
|
</rule>
|
||||||
|
|
||||||
|
|
||||||
<!-- CODE STYLE -->
|
<!-- CODE STYLE -->
|
||||||
<rule ref="category/java/codestyle.xml">
|
<rule ref="category/java/codestyle.xml">
|
||||||
<exclude name="AtLeastOneConstructor"/>
|
<exclude name="AtLeastOneConstructor"/>
|
||||||
<exclude name="ClassNamingConventions"/>
|
<exclude name="ClassNamingConventions"/>
|
||||||
<exclude name="CommentDefaultAccessModifier"/>
|
|
||||||
<exclude name="ConfusingTernary"/>
|
<exclude name="ConfusingTernary"/>
|
||||||
|
<exclude name="CommentDefaultAccessModifier"/>
|
||||||
<exclude name="FieldNamingConventions"/>
|
<exclude name="FieldNamingConventions"/>
|
||||||
<exclude name="LocalVariableCouldBeFinal"/>
|
<exclude name="LocalVariableCouldBeFinal"/>
|
||||||
<exclude name="LongVariable"/>
|
<exclude name="LongVariable"/>
|
||||||
|
@ -35,9 +41,8 @@
|
||||||
<exclude name="ShortClassName"/>
|
<exclude name="ShortClassName"/>
|
||||||
<exclude name="ShortMethodName"/>
|
<exclude name="ShortMethodName"/>
|
||||||
<exclude name="ShortVariable"/>
|
<exclude name="ShortVariable"/>
|
||||||
<exclude name="UseExplicitTypes"/>
|
|
||||||
<exclude name="UseUnderscoresInNumericLiterals"/>
|
|
||||||
<exclude name="UselessParentheses"/>
|
<exclude name="UselessParentheses"/>
|
||||||
|
<exclude name="UseUnderscoresInNumericLiterals"/>
|
||||||
</rule>
|
</rule>
|
||||||
|
|
||||||
<rule ref="category/java/codestyle.xml/UnnecessaryImport">
|
<rule ref="category/java/codestyle.xml/UnnecessaryImport">
|
||||||
|
@ -53,6 +58,8 @@
|
||||||
<exclude name="AvoidUncheckedExceptionsInSignatures"/>
|
<exclude name="AvoidUncheckedExceptionsInSignatures"/>
|
||||||
<exclude name="CognitiveComplexity"/>
|
<exclude name="CognitiveComplexity"/>
|
||||||
<exclude name="CyclomaticComplexity"/>
|
<exclude name="CyclomaticComplexity"/>
|
||||||
|
<exclude name="ExcessiveClassLength"/>
|
||||||
|
<exclude name="ExcessiveMethodLength"/>
|
||||||
<exclude name="ExcessiveParameterList"/>
|
<exclude name="ExcessiveParameterList"/>
|
||||||
<exclude name="ExcessivePublicCount"/>
|
<exclude name="ExcessivePublicCount"/>
|
||||||
<exclude name="GodClass"/>
|
<exclude name="GodClass"/>
|
||||||
|
@ -106,4 +113,4 @@
|
||||||
<!-- SECURITY -->
|
<!-- SECURITY -->
|
||||||
<rule ref="category/java/security.xml">
|
<rule ref="category/java/security.xml">
|
||||||
</rule>
|
</rule>
|
||||||
</ruleset>
|
</ruleset>
|
Binary file not shown.
|
@ -1,8 +1,8 @@
|
||||||
bld.downloadExtensionJavadoc=false
|
bld.downloadExtensionJavadoc=false
|
||||||
bld.downloadExtensionSources=true
|
bld.downloadExtensionSources=true
|
||||||
bld.downloadLocation=
|
bld.extension-pmd=com.uwyn.rife2:bld-pmd:0.9.7
|
||||||
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.7
|
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.3
|
||||||
bld.extension-pmd=com.uwyn.rife2:bld-pmd:1.1.4
|
|
||||||
bld.extension-tests=com.uwyn.rife2:bld-tests-badge:1.4.6
|
bld.extension-tests=com.uwyn.rife2:bld-tests-badge:1.4.6
|
||||||
bld.repositories=MAVEN_CENTRAL,MAVEN_LOCAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
bld.repositories=MAVEN_CENTRAL,MAVEN_LOCAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
|
||||||
bld.version=2.0.1
|
bld.downloadLocation=
|
||||||
|
bld.version=1.9.0
|
||||||
|
|
|
@ -27,6 +27,7 @@ import rife.bld.publish.PublishInfo;
|
||||||
import rife.bld.publish.PublishLicense;
|
import rife.bld.publish.PublishLicense;
|
||||||
import rife.bld.publish.PublishScm;
|
import rife.bld.publish.PublishScm;
|
||||||
|
|
||||||
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static rife.bld.dependencies.Repository.*;
|
import static rife.bld.dependencies.Repository.*;
|
||||||
|
@ -40,7 +41,7 @@ public class TemplateRenderersBuild extends Project {
|
||||||
public TemplateRenderersBuild() {
|
public TemplateRenderersBuild() {
|
||||||
pkg = "rife.render";
|
pkg = "rife.render";
|
||||||
name = "rife2-template-renderers";
|
name = "rife2-template-renderers";
|
||||||
version = version(1, 1, 6, "SNAPSHOT");
|
version = version(1, 1, 5);
|
||||||
|
|
||||||
javaRelease = 17;
|
javaRelease = 17;
|
||||||
downloadSources = true;
|
downloadSources = true;
|
||||||
|
@ -48,11 +49,11 @@ public class TemplateRenderersBuild extends Project {
|
||||||
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
repositories = List.of(MAVEN_CENTRAL, RIFE2_RELEASES);
|
||||||
|
|
||||||
scope(compile)
|
scope(compile)
|
||||||
.include(dependency("com.uwyn.rife2", "rife2", version(1, 8, 0)));
|
.include(dependency("com.uwyn.rife2", "rife2", version(1, 7, 3)));
|
||||||
scope(test)
|
scope(test)
|
||||||
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 3)))
|
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 10, 2)))
|
||||||
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 3)))
|
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 10, 2)))
|
||||||
.include(dependency("org.assertj", "assertj-core", version(3, 26, 3)));
|
.include(dependency("org.assertj", "assertj-core", version(3, 25, 3)));
|
||||||
|
|
||||||
javadocOperation().javadocOptions()
|
javadocOperation().javadocOptions()
|
||||||
.docTitle("<a href=\"https://rife2.com\">RIFE2</a> Template Renderers")
|
.docTitle("<a href=\"https://rife2.com\">RIFE2</a> Template Renderers")
|
||||||
|
@ -61,13 +62,13 @@ public class TemplateRenderersBuild extends Project {
|
||||||
.link("https://rife2.github.io/rife2/");
|
.link("https://rife2.github.io/rife2/");
|
||||||
|
|
||||||
publishOperation()
|
publishOperation()
|
||||||
.repository(version.isSnapshot() ? SONATYPE_SNAPSHOTS
|
.repository(version.isSnapshot() ? repository(SONATYPE_SNAPSHOTS.location())
|
||||||
.withCredentials(property("sonatypeUser"), property("sonatypePassword"))
|
.withCredentials(property("sonatypeUser"), property("sonatypePassword"))
|
||||||
: SONATYPE_RELEASES
|
: repository(SONATYPE_RELEASES.location())
|
||||||
.withCredentials(property("sonatypeUser"), property("sonatypePassword")))
|
.withCredentials(property("sonatypeUser"), property("sonatypePassword")))
|
||||||
.repository(version.isSnapshot() ? RIFE2_SNAPSHOTS
|
.repository(version.isSnapshot() ? repository(RIFE2_SNAPSHOTS.location())
|
||||||
.withCredentials(property("rife2Username"), property("rife2Password"))
|
.withCredentials(property("rife2Username"), property("rife2Password"))
|
||||||
: RIFE2_RELEASES
|
: repository(RIFE2_RELEASES.location())
|
||||||
.withCredentials(property("rife2Username"), property("rife2Password")))
|
.withCredentials(property("rife2Username"), property("rife2Password")))
|
||||||
.info(new PublishInfo()
|
.info(new PublishInfo()
|
||||||
.groupId("com.uwyn.rife2")
|
.groupId("com.uwyn.rife2")
|
||||||
|
@ -80,7 +81,7 @@ public class TemplateRenderersBuild extends Project {
|
||||||
.developer(new PublishDeveloper().id("gbevin").name("Geert Bevin").email("gbevin@uwyn.com")
|
.developer(new PublishDeveloper().id("gbevin").name("Geert Bevin").email("gbevin@uwyn.com")
|
||||||
.url("https://github.com/gbevin"))
|
.url("https://github.com/gbevin"))
|
||||||
.license(new PublishLicense().name("The Apache License, Version 2.0")
|
.license(new PublishLicense().name("The Apache License, Version 2.0")
|
||||||
.url("https://www.apache.org/licenses/LICENSE-2.0.txt"))
|
.url("http://www.apache.org/licenses/LICENSE-2.0.txt"))
|
||||||
.scm(new PublishScm().connection("scm:git:https://github.com/rife2/rife2-template-renderers.git")
|
.scm(new PublishScm().connection("scm:git:https://github.com/rife2/rife2-template-renderers.git")
|
||||||
.developerConnection("scm:git:git@github.com:rife2/rife2-template-renderers.git")
|
.developerConnection("scm:git:git@github.com:rife2/rife2-template-renderers.git")
|
||||||
.url("https://github.com/rife2/rife2-template-renderers"))
|
.url("https://github.com/rife2/rife2-template-renderers"))
|
||||||
|
@ -93,14 +94,14 @@ public class TemplateRenderersBuild extends Project {
|
||||||
}
|
}
|
||||||
|
|
||||||
@BuildCommand(summary = "Generates JaCoCo Reports")
|
@BuildCommand(summary = "Generates JaCoCo Reports")
|
||||||
public void jacoco() throws Exception {
|
public void jacoco() throws IOException {
|
||||||
new JacocoReportOperation()
|
new JacocoReportOperation()
|
||||||
.fromProject(this)
|
.fromProject(this)
|
||||||
.execute();
|
.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
@BuildCommand(summary = "Runs PMD analysis")
|
@BuildCommand(summary = "Runs PMD analysis")
|
||||||
public void pmd() throws Exception {
|
public void pmd() {
|
||||||
new PmdOperation()
|
new PmdOperation()
|
||||||
.fromProject(this)
|
.fromProject(this)
|
||||||
.failOnViolation(true)
|
.failOnViolation(true)
|
||||||
|
@ -114,4 +115,4 @@ public class TemplateRenderersBuild extends Project {
|
||||||
.apiKey(property("testsBadgeApiKey"))
|
.apiKey(property("testsBadgeApiKey"))
|
||||||
.fromProject(this));
|
.fromProject(this));
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue