Compare commits
No commits in common. "7e1bff978038d523bd8c241d29d58298b8a544b7" and "8240170ed818432bee6e5833bd9a67fc05c83399" have entirely different histories.
7e1bff9780
...
8240170ed8
2
.gitignore
vendored
2
.gitignore
vendored
@ -13,5 +13,3 @@ build/
|
|||||||
# Ssg dirs
|
# Ssg dirs
|
||||||
bin
|
bin
|
||||||
dist
|
dist
|
||||||
|
|
||||||
*.jfr
|
|
||||||
|
|||||||
10
build.gradle
10
build.gradle
@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id 'com.jessebrault.ssg' version '0.7.0-SNAPSHOT'
|
id 'com.jessebrault.ssg' version '0.6.3'
|
||||||
id 'distribution'
|
id 'distribution'
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,9 +24,11 @@ sourceSets {
|
|||||||
dependencies {
|
dependencies {
|
||||||
implementation 'org.apache.groovy:groovy:4.0.27'
|
implementation 'org.apache.groovy:groovy:4.0.27'
|
||||||
|
|
||||||
serverImplementation 'org.eclipse.jetty:jetty-server:12.1.5'
|
implementation 'com.jessebrault.ssg:cli:0.6.3'
|
||||||
serverImplementation 'info.picocli:picocli:4.7.7'
|
|
||||||
serverRuntimeOnly 'org.apache.logging.log4j:log4j-slf4j2-impl:2.25.3'
|
serverImplementation 'org.eclipse.jetty:jetty-server:12.0.9'
|
||||||
|
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) {
|
||||||
|
|||||||
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
BIN
gradle/wrapper/gradle-wrapper.jar
vendored
Binary file not shown.
12
gradlew
vendored
12
gradlew
vendored
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
#
|
#
|
||||||
# Copyright © 2015 the original authors.
|
# Copyright © 2015-2021 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,7 +86,8 @@ 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\n' "$PWD" ) || exit
|
APP_HOME=$( cd -P "${APP_HOME:-./}" > /dev/null && printf '%s
|
||||||
|
' "$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
|
||||||
@ -114,6 +115,7 @@ 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.
|
||||||
@ -171,6 +173,7 @@ 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" )
|
||||||
|
|
||||||
@ -203,14 +206,15 @@ 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, and optsEnvironmentVar are not allowed to contain shell fragments,
|
# * DEFAULT_JVM_OPTS, JAVA_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" \
|
||||||
-jar "$APP_HOME/gradle/wrapper/gradle-wrapper.jar" \
|
-classpath "$CLASSPATH" \
|
||||||
|
org.gradle.wrapper.GradleWrapperMain \
|
||||||
"$@"
|
"$@"
|
||||||
|
|
||||||
# Stop when "xargs" is not available.
|
# Stop when "xargs" is not available.
|
||||||
|
|||||||
3
gradlew.bat
vendored
3
gradlew.bat
vendored
@ -70,10 +70,11 @@ 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%" -jar "%APP_HOME%\gradle\wrapper\gradle-wrapper.jar" %*
|
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
|
||||||
|
|
||||||
:end
|
:end
|
||||||
@rem End local scope for the variables with windows NT shell
|
@rem End local scope for the variables with windows NT shell
|
||||||
|
|||||||
@ -1,6 +1,5 @@
|
|||||||
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
|
||||||
@ -17,11 +16,11 @@ class CompositionPageFactory implements PageFactory {
|
|||||||
CompositionPageFactory(
|
CompositionPageFactory(
|
||||||
RegistryObjectFactory objectFactory,
|
RegistryObjectFactory objectFactory,
|
||||||
CompositionContainer compositions,
|
CompositionContainer compositions,
|
||||||
WvcCompilerFactory wvcCompilerFactory
|
WvcCompiler wvcCompiler
|
||||||
) {
|
) {
|
||||||
this.objectFactory = objectFactory
|
this.objectFactory = objectFactory
|
||||||
this.compositions = compositions
|
this.compositions = compositions
|
||||||
this.wvcCompiler = wvcCompilerFactory.getWvcCompiler()
|
this.wvcCompiler = wvcCompiler
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@ -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'
|
||||||
}
|
}
|
||||||
objectFactory.configure {
|
objectFactoryBuilder.configure {
|
||||||
configureRegistry {
|
configureRegistry {
|
||||||
bind(TitleMaker, toSelf())
|
bind(TitleMaker, toSelf())
|
||||||
bind(CompositionContainer, toSelf())
|
bind(CompositionContainer, toSelf())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user