Upgrade groowt and groovy dependencies.
This commit is contained in:
		
							parent
							
								
									753f3b67b1
								
							
						
					
					
						commit
						1799db2e37
					
				| @ -8,7 +8,6 @@ plugins { | |||||||
| 
 | 
 | ||||||
| repositories { | repositories { | ||||||
|     mavenCentral() |     mavenCentral() | ||||||
|     mavenLocal() |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| configurations { | configurations { | ||||||
| @ -20,7 +19,12 @@ configurations { | |||||||
| dependencies { | dependencies { | ||||||
|     api libs.groovy |     api libs.groovy | ||||||
|     api libs.groovy.yaml |     api libs.groovy.yaml | ||||||
|     api libs.groowt.all | 
 | ||||||
|  |     api libs.groowt.v | ||||||
|  |     api libs.groowt.vc | ||||||
|  |     api libs.groowt.wvc | ||||||
|  |     api libs.groowt.fp | ||||||
|  |     api libs.groowt.di | ||||||
| 
 | 
 | ||||||
|     compileOnlyApi libs.jetbrains.anontations |     compileOnlyApi libs.jetbrains.anontations | ||||||
| 
 | 
 | ||||||
| @ -29,7 +33,7 @@ dependencies { | |||||||
|     implementation libs.commonmark.frontmatter |     implementation libs.commonmark.frontmatter | ||||||
|     implementation libs.jsoup |     implementation libs.jsoup | ||||||
| 
 | 
 | ||||||
|     runtimeOnly libs.groowt.wvcCompiler |     runtimeOnly libs.groowt.wvcc | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| java { | java { | ||||||
|  | |||||||
| @ -19,7 +19,6 @@ import groovy.transform.TupleConstructor | |||||||
| import groowt.util.di.ObjectFactory | import groowt.util.di.ObjectFactory | ||||||
| import groowt.util.di.RegistryObjectFactory | import groowt.util.di.RegistryObjectFactory | ||||||
| import groowt.util.fp.option.Option | import groowt.util.fp.option.Option | ||||||
| import groowt.view.component.compiler.DefaultComponentTemplateCompilerConfiguration |  | ||||||
| import groowt.view.component.compiler.SimpleComponentTemplateClassFactory | import groowt.view.component.compiler.SimpleComponentTemplateClassFactory | ||||||
| import groowt.view.component.factory.ComponentFactories | import groowt.view.component.factory.ComponentFactories | ||||||
| import groowt.view.component.web.DefaultWebViewComponentContext | import groowt.view.component.web.DefaultWebViewComponentContext | ||||||
| @ -72,10 +71,7 @@ class DefaultStaticSiteGenerator implements StaticSiteGenerator { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     protected WvcCompiler getWvcCompiler() { |     protected WvcCompiler getWvcCompiler() { | ||||||
|         def wvcCompilerConfiguration = new DefaultComponentTemplateCompilerConfiguration() |         new WvcCompiler(new SimpleComponentTemplateClassFactory(this.groovyClassLoader)) | ||||||
|         wvcCompilerConfiguration.groovyClassLoader = this.groovyClassLoader |  | ||||||
|         def templateClassFactory = new SimpleComponentTemplateClassFactory(this.groovyClassLoader) |  | ||||||
|         new WvcCompiler(wvcCompilerConfiguration, templateClassFactory) |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     protected WebViewComponentContext makeContext( |     protected WebViewComponentContext makeContext( | ||||||
|  | |||||||
| @ -6,14 +6,12 @@ import groowt.util.fp.either.Either | |||||||
| import groowt.view.component.ComponentTemplate | import groowt.view.component.ComponentTemplate | ||||||
| import groowt.view.component.ViewComponent | import groowt.view.component.ViewComponent | ||||||
| import groowt.view.component.compiler.ComponentTemplateClassFactory | import groowt.view.component.compiler.ComponentTemplateClassFactory | ||||||
| import groowt.view.component.compiler.ComponentTemplateCompilerConfiguration |  | ||||||
| import groowt.view.component.compiler.source.ComponentTemplateSource | import groowt.view.component.compiler.source.ComponentTemplateSource | ||||||
| import groowt.view.component.web.compiler.DefaultWebViewComponentTemplateCompileUnit | import groowt.view.component.web.compiler.DefaultWebViewComponentTemplateCompileUnit | ||||||
| 
 | 
 | ||||||
| @TupleConstructor | @TupleConstructor | ||||||
| class WvcCompiler { | class WvcCompiler { | ||||||
| 
 | 
 | ||||||
|     final ComponentTemplateCompilerConfiguration compilerConfiguration |  | ||||||
|     final ComponentTemplateClassFactory templateClassFactory |     final ComponentTemplateClassFactory templateClassFactory | ||||||
| 
 | 
 | ||||||
|     Either<Diagnostic, ComponentTemplate> compileTemplate( |     Either<Diagnostic, ComponentTemplate> compileTemplate( | ||||||
| @ -33,7 +31,7 @@ class WvcCompiler { | |||||||
|                 source, |                 source, | ||||||
|                 componentClass.packageName |                 componentClass.packageName | ||||||
|         ) |         ) | ||||||
|         def compileResult = compileUnit.compile(compilerConfiguration) |         def compileResult = compileUnit.compile() | ||||||
|         def templateClass = templateClassFactory.getTemplateClass(compileResult) |         def templateClass = templateClassFactory.getTemplateClass(compileResult) | ||||||
|         def componentTemplate = templateClass.getConstructor().newInstance() |         def componentTemplate = templateClass.getConstructor().newInstance() | ||||||
|         return Either.right(componentTemplate) |         return Either.right(componentTemplate) | ||||||
|  | |||||||
| @ -4,7 +4,7 @@ plugins { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| group 'com.jessebrault.ssg' | group 'com.jessebrault.ssg' | ||||||
| version '0.4.2' | version '0.4.3' | ||||||
| 
 | 
 | ||||||
| repositories { | repositories { | ||||||
|     mavenCentral() |     mavenCentral() | ||||||
|  | |||||||
| @ -8,7 +8,6 @@ plugins { | |||||||
| repositories { | repositories { | ||||||
|     mavenCentral() |     mavenCentral() | ||||||
|     maven { url 'https://repo.gradle.org/gradle/libs-releases' } |     maven { url 'https://repo.gradle.org/gradle/libs-releases' } | ||||||
|     mavenLocal() |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| dependencies { | dependencies { | ||||||
|  | |||||||
| @ -1,7 +1,7 @@ | |||||||
| [versions] | [versions] | ||||||
| commonmark = '0.22.0' | commonmark = '0.22.0' | ||||||
| groovy = '4.0.21' | groovy = '4.0.25' | ||||||
| groowt = '0.1.2' | groowt = '0.1.3' | ||||||
| log4j2 = '2.23.1' | log4j2 = '2.23.1' | ||||||
| mockito = '5.12.0' | mockito = '5.12.0' | ||||||
| junit = '5.10.2' | junit = '5.10.2' | ||||||
| @ -12,8 +12,12 @@ commonmark = { module = 'org.commonmark:commonmark', version.ref = 'commonmark' | |||||||
| commonmark-frontmatter = { module = 'org.commonmark:commonmark-ext-yaml-front-matter', version.ref = 'commonmark' } | commonmark-frontmatter = { module = 'org.commonmark:commonmark-ext-yaml-front-matter', version.ref = 'commonmark' } | ||||||
| groovy = { module = 'org.apache.groovy:groovy', version.ref = 'groovy' } | groovy = { module = 'org.apache.groovy:groovy', version.ref = 'groovy' } | ||||||
| groovy-yaml = { module = 'org.apache.groovy:groovy-yaml', version.ref = 'groovy' } | groovy-yaml = { module = 'org.apache.groovy:groovy-yaml', version.ref = 'groovy' } | ||||||
| groowt-all = { module = 'groowt:groowt-all', version.ref = 'groowt' } | groowt-v = { module = 'groowt:views', version.ref = 'groowt' } | ||||||
| groowt-wvcCompiler = { module = 'groowt:web-view-components-compiler', version.ref = 'groowt' } | groowt-vc = { module = 'groowt:view-components', version.ref = 'groowt' } | ||||||
|  | groowt-wvc= { module = 'groowt:web-view-components', version.ref = 'groowt' } | ||||||
|  | groowt-wvcc = { module = 'groowt:web-view-components-compiler', version.ref = 'groowt' } | ||||||
|  | groowt-fp = { module = 'groowt:util-fp', version.ref = 'groowt' } | ||||||
|  | groowt-di = { module = 'groowt:util-di', version.ref = 'groowt' } | ||||||
| jetbrains-anontations = 'org.jetbrains:annotations:24.1.0' | jetbrains-anontations = 'org.jetbrains:annotations:24.1.0' | ||||||
| jsoup = 'org.jsoup:jsoup:1.17.2' | jsoup = 'org.jsoup:jsoup:1.17.2' | ||||||
| junit-jupiter-api = { module = 'org.junit.jupiter:junit-jupiter-api', version.ref = 'junit' } | junit-jupiter-api = { module = 'org.junit.jupiter:junit-jupiter-api', version.ref = 'junit' } | ||||||
|  | |||||||
							
								
								
									
										
											BIN
										
									
								
								gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							
							
								
								
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								gradle/wrapper/gradle-wrapper.properties
									
									
									
									
										vendored
									
									
								
							| @ -1,6 +1,6 @@ | |||||||
| distributionBase=GRADLE_USER_HOME | distributionBase=GRADLE_USER_HOME | ||||||
| distributionPath=wrapper/dists | distributionPath=wrapper/dists | ||||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip | distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip | ||||||
| networkTimeout=10000 | networkTimeout=10000 | ||||||
| validateDistributionUrl=true | validateDistributionUrl=true | ||||||
| zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME | ||||||
|  | |||||||
							
								
								
									
										3
									
								
								gradlew
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								gradlew
									
									
									
									
										vendored
									
									
								
							| @ -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 | ||||||
|  | |||||||
| @ -1,19 +1,19 @@ | |||||||
| plugins { | plugins { | ||||||
|     id 'com.jessebrault.ssg' version '0.4.2' |     id 'com.jessebrault.ssg' | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| dependencies { | dependencies { | ||||||
|     implementation 'org.apache.groovy:groovy:4.0.21' |     implementation 'org.apache.groovy:groovy:4.0.25' | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| repositories { | repositories { | ||||||
|     mavenCentral() |     mavenCentral() | ||||||
|     maven { | //    maven { | ||||||
|         url 'https://archiva.jessebrault.com/repository/internal/' | //        url 'https://archiva.jessebrault.com/repository/internal/' | ||||||
| 
 | // | ||||||
|         credentials { | //        credentials { | ||||||
|             username System.getenv('JBARCHIVA_USERNAME') | //            username System.getenv('JBARCHIVA_USERNAME') | ||||||
|             password System.getenv('JBARCHIVA_PASSWORD') | //            password System.getenv('JBARCHIVA_PASSWORD') | ||||||
|         } | //        } | ||||||
|     } | //    } | ||||||
| } | } | ||||||
|  | |||||||
							
								
								
									
										
											BIN
										
									
								
								test-ssg-project/gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										
											BIN
										
									
								
								test-ssg-project/gradle/wrapper/gradle-wrapper.jar
									
									
									
									
										vendored
									
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -1,6 +1,6 @@ | |||||||
| distributionBase=GRADLE_USER_HOME | distributionBase=GRADLE_USER_HOME | ||||||
| distributionPath=wrapper/dists | distributionPath=wrapper/dists | ||||||
| distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip | distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip | ||||||
| networkTimeout=10000 | networkTimeout=10000 | ||||||
| validateDistributionUrl=true | validateDistributionUrl=true | ||||||
| zipStoreBase=GRADLE_USER_HOME | zipStoreBase=GRADLE_USER_HOME | ||||||
|  | |||||||
							
								
								
									
										3
									
								
								test-ssg-project/gradlew
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								test-ssg-project/gradlew
									
									
									
									
										vendored
									
									
								
							| @ -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 | ||||||
|  | |||||||
| @ -1,15 +1,5 @@ | |||||||
| pluginManagement { | pluginManagement { | ||||||
|     repositories { |     includeBuild('../') | ||||||
|         mavenCentral() |  | ||||||
|         maven { |  | ||||||
|             url 'https://archiva.jessebrault.com/repository/internal/' |  | ||||||
| 
 |  | ||||||
|             credentials { |  | ||||||
|                 username System.getenv('JBARCHIVA_USERNAME') |  | ||||||
|                 password System.getenv('JBARCHIVA_PASSWORD') |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|     } |  | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| rootProject.name = 'test-ssg-project' | rootProject.name = 'test-ssg-project' | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Jesse Brault
						Jesse Brault