Compare commits

...

2 Commits

Author SHA1 Message Date
Jesse Brault
7e1bff9780 Update server dependencies.
Some checks failed
Jb-ssg-site CI Pipeline / ci (push) Has been cancelled
2026-01-04 18:34:23 -06:00
Jesse Brault
82d90a0e67 Various updates with ssg 0.7.0-SNAPSHOT. 2026-01-04 18:30:14 -06:00
7 changed files with 15 additions and 19 deletions

2
.gitignore vendored
View File

@ -13,3 +13,5 @@ build/
# Ssg dirs # Ssg dirs
bin bin
dist dist
*.jfr

View File

@ -1,5 +1,5 @@
plugins { plugins {
id 'com.jessebrault.ssg' version '0.6.3' id 'com.jessebrault.ssg' version '0.7.0-SNAPSHOT'
id 'distribution' id 'distribution'
} }
@ -24,11 +24,9 @@ sourceSets {
dependencies { dependencies {
implementation 'org.apache.groovy:groovy:4.0.27' implementation 'org.apache.groovy:groovy:4.0.27'
implementation 'com.jessebrault.ssg:cli:0.6.3' serverImplementation 'org.eclipse.jetty:jetty-server:12.1.5'
serverImplementation 'info.picocli:picocli:4.7.7'
serverImplementation 'org.eclipse.jetty:jetty-server:12.0.9' serverRuntimeOnly 'org.apache.logging.log4j:log4j-slf4j2-impl:2.25.3'
serverImplementation 'info.picocli:picocli:4.7.6'
serverRuntimeOnly 'org.apache.logging.log4j:log4j-slf4j2-impl:2.23.1'
} }
tasks.register('serverJar', Jar) { tasks.register('serverJar', Jar) {

Binary file not shown.

12
gradlew vendored
View File

@ -1,7 +1,7 @@
#!/bin/sh #!/bin/sh
# #
# Copyright © 2015-2021 the original authors. # Copyright © 2015 the original authors.
# #
# Licensed under the Apache License, Version 2.0 (the "License"); # Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License. # you may not use this file except in compliance with the License.
@ -86,8 +86,7 @@ done
# shellcheck disable=SC2034 # shellcheck disable=SC2034
APP_BASE_NAME=${0##*/} APP_BASE_NAME=${0##*/}
# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) # Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036)
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s\n' "$PWD" ) || exit
' "$PWD" ) || exit
# Use the maximum available, or set MAX_FD != -1 to use that value. # Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum MAX_FD=maximum
@ -115,7 +114,6 @@ case "$( uname )" in #(
NONSTOP* ) nonstop=true ;; NONSTOP* ) nonstop=true ;;
esac esac
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM. # Determine the Java command to use to start the JVM.
@ -173,7 +171,6 @@ fi
# For Cygwin or MSYS, switch paths to Windows format before running java # For Cygwin or MSYS, switch paths to Windows format before running java
if "$cygwin" || "$msys" ; then if "$cygwin" || "$msys" ; then
APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
JAVACMD=$( cygpath --unix "$JAVACMD" ) JAVACMD=$( cygpath --unix "$JAVACMD" )
@ -206,15 +203,14 @@ fi
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
# Collect all arguments for the java command: # Collect all arguments for the java command:
# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, # * DEFAULT_JVM_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
# and any embedded shellness will be escaped. # and any embedded shellness will be escaped.
# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
# treated as '${Hostname}' itself on the command line. # treated as '${Hostname}' itself on the command line.
set -- \ set -- \
"-Dorg.gradle.appname=$APP_BASE_NAME" \ "-Dorg.gradle.appname=$APP_BASE_NAME" \
-classpath "$CLASSPATH" \ -jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
org.gradle.wrapper.GradleWrapperMain \
"$@" "$@"
# Stop when "xargs" is not available. # Stop when "xargs" is not available.

3
gradlew.bat vendored
View File

@ -70,11 +70,10 @@ goto fail
:execute :execute
@rem Setup the command line @rem Setup the command line
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
@rem Execute Gradle @rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* "%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
:end :end
@rem End local scope for the variables with windows NT shell @rem End local scope for the variables with windows NT shell

View File

@ -1,5 +1,6 @@
package com.jessebrault.site.composition package com.jessebrault.site.composition
import com.jessebrault.ssg.WvcCompilerFactory
import com.jessebrault.ssg.page.Page import com.jessebrault.ssg.page.Page
import com.jessebrault.ssg.page.PageFactory import com.jessebrault.ssg.page.PageFactory
import com.jessebrault.ssg.view.WvcCompiler import com.jessebrault.ssg.view.WvcCompiler
@ -16,11 +17,11 @@ class CompositionPageFactory implements PageFactory {
CompositionPageFactory( CompositionPageFactory(
RegistryObjectFactory objectFactory, RegistryObjectFactory objectFactory,
CompositionContainer compositions, CompositionContainer compositions,
WvcCompiler wvcCompiler WvcCompilerFactory wvcCompilerFactory
) { ) {
this.objectFactory = objectFactory this.objectFactory = objectFactory
this.compositions = compositions this.compositions = compositions
this.wvcCompiler = wvcCompiler this.wvcCompiler = wvcCompilerFactory.getWvcCompiler()
} }
@Override @Override

View File

@ -22,7 +22,7 @@ build {
githubUrl = 'https://github.com/JesseBrault0709' githubUrl = 'https://github.com/JesseBrault0709'
openGraphFallbackImage = 'https://jessebrault.nyc3.cdn.digitaloceanspaces.com/images/portrait3.jpg' openGraphFallbackImage = 'https://jessebrault.nyc3.cdn.digitaloceanspaces.com/images/portrait3.jpg'
} }
objectFactoryBuilder.configure { objectFactory.configure {
configureRegistry { configureRegistry {
bind(TitleMaker, toSelf()) bind(TitleMaker, toSelf())
bind(CompositionContainer, toSelf()) bind(CompositionContainer, toSelf())