Skip to content

Commit

Permalink
release: v0.7.4
Browse files Browse the repository at this point in the history
hotfix jte autoconfiguration
  • Loading branch information
tschuehly committed Apr 8, 2024
1 parent 0e88cb3 commit 71ebd0e
Show file tree
Hide file tree
Showing 12 changed files with 26 additions and 31 deletions.
4 changes: 2 additions & 2 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
}

group = "de.tschuehly"
version = "0.7.3"
version = "0.7.4"
java.sourceCompatibility = JavaVersion.VERSION_17

repositories {
Expand All @@ -34,7 +34,7 @@ dependencies {
testFixturesImplementation("org.springframework.boot:spring-boot-starter-web")
testFixturesImplementation("org.springframework.boot:spring-boot-devtools")

implementation("de.tschuehly:spring-view-component-jte-compiler:0.7.3")
implementation("de.tschuehly:spring-view-component-jte-compiler:0.7.4")

}

Expand Down
6 changes: 3 additions & 3 deletions examples/jte-example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ repositories {
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")

implementation("de.tschuehly:spring-view-component-jte:0.7.3")
annotationProcessor("de.tschuehly:spring-view-component-core:0.7.3")
implementation("de.tschuehly:spring-view-component-jte:0.7.4")
annotationProcessor("de.tschuehly:spring-view-component-core:0.7.4")

implementation("org.webjars.npm:htmx.org:1.9.11")
implementation("org.webjars:webjars-locator-core:0.58")

testImplementation("org.springframework.boot:spring-boot-starter-test")
testRuntimeOnly("org.springframework.boot:spring-boot-devtools")
testImplementation(testFixtures("de.tschuehly:spring-view-component-core:0.7.3"))
testImplementation(testFixtures("de.tschuehly:spring-view-component-core:0.7.4"))
}

tasks.withType<Test> {
Expand Down
2 changes: 1 addition & 1 deletion examples/jte-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<description>JTE Example</description>
<properties>
<java.version>17</java.version>
<view.component.version>0.7.3</view.component.version>
<view.component.version>0.7.4</view.component.version>
</properties>
<dependencies>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions examples/kte-example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ repositories {
}

dependencies {
implementation("de.tschuehly:spring-view-component-kte:0.7.3")
kapt("de.tschuehly:spring-view-component-core:0.7.3")
implementation("de.tschuehly:spring-view-component-kte:0.7.4")
kapt("de.tschuehly:spring-view-component-core:0.7.4")
implementation("io.github.wimdeblauwe:htmx-spring-boot:3.1.1")

implementation("org.webjars.npm:htmx.org:1.9.11")
Expand All @@ -36,7 +36,7 @@ dependencies {

testImplementation("org.springframework.boot:spring-boot-starter-test")
testImplementation("org.springframework.boot:spring-boot-devtools")
testImplementation(testFixtures("de.tschuehly:spring-view-component-core:0.7.3"))
testImplementation(testFixtures("de.tschuehly:spring-view-component-core:0.7.4"))
}

tasks.withType<KotlinCompile> {
Expand Down
6 changes: 3 additions & 3 deletions examples/thymeleaf-java-example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ repositories {
dependencies {
implementation("org.springframework.boot:spring-boot-starter-web")
developmentOnly("org.springframework.boot:spring-boot-devtools")
implementation("de.tschuehly:spring-view-component-thymeleaf:0.7.3")
annotationProcessor("de.tschuehly:spring-view-component-core:0.7.3")
implementation("de.tschuehly:spring-view-component-thymeleaf:0.7.4")
annotationProcessor("de.tschuehly:spring-view-component-core:0.7.4")

implementation("org.webjars.npm:htmx.org:1.9.11")
implementation("org.webjars:webjars-locator-core:0.58")
testImplementation("org.springframework.boot:spring-boot-starter-test")

testImplementation("org.springframework.boot:spring-boot-devtools")
testImplementation(testFixtures("de.tschuehly:spring-view-component-core:0.7.3"))
testImplementation(testFixtures("de.tschuehly:spring-view-component-core:0.7.4"))
}

tasks.withType<Test> {
Expand Down
2 changes: 1 addition & 1 deletion examples/thymeleaf-java-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<description>Thymeleaf Java Example</description>
<properties>
<java.version>17</java.version>
<view.component.version>0.7.3</view.component.version>
<view.component.version>0.7.4</view.component.version>
</properties>
<dependencies>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions examples/thymeleaf-kotlin-example/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ repositories {
}

dependencies {
implementation("de.tschuehly:spring-view-component-thymeleaf:0.7.3")
kapt("de.tschuehly:spring-view-component-core:0.7.3")
implementation("de.tschuehly:spring-view-component-thymeleaf:0.7.4")
kapt("de.tschuehly:spring-view-component-core:0.7.4")

implementation("org.webjars.npm:htmx.org:1.9.2")
implementation("org.webjars:webjars-locator:0.47")
Expand All @@ -41,7 +41,7 @@ dependencies {
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")

testImplementation("org.springframework.boot:spring-boot-devtools")
testImplementation(testFixtures("de.tschuehly:spring-view-component-core:0.7.3"))
testImplementation(testFixtures("de.tschuehly:spring-view-component-core:0.7.4"))
}

tasks.withType<KotlinCompile> {
Expand Down
2 changes: 1 addition & 1 deletion jte/jte-compiler/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "de.tschuehly"
version = "0.7.3"
version = "0.7.4"
java.sourceCompatibility = JavaVersion.VERSION_17

repositories {
Expand Down
4 changes: 2 additions & 2 deletions jte/jte/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ plugins {
}

group = "de.tschuehly"
version = "0.7.3"
version = "0.7.4"
java.sourceCompatibility = JavaVersion.VERSION_17

repositories {
mavenCentral()
}
dependencies {
api("gg.jte:jte:3.1.9")
api("de.tschuehly:spring-view-component-core:0.7.3")
api("de.tschuehly:spring-view-component-core:0.7.4")

implementation("gg.jte:jte-spring-boot-starter-3:3.1.9")
implementation("org.springframework.boot:spring-boot-starter-web")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import de.tschuehly.spring.viewcomponent.core.component.ViewComponentProperties
import gg.jte.ContentType
import gg.jte.TemplateEngine
import gg.jte.springframework.boot.autoconfigure.JteViewResolver
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean
import org.springframework.boot.context.properties.EnableConfigurationProperties
import org.springframework.context.ApplicationContext
import org.springframework.context.annotation.Bean
Expand All @@ -19,19 +18,15 @@ import java.nio.file.Paths
@Import(ViewComponentAutoConfiguration::class)
@EnableConfigurationProperties(ViewComponentProperties::class)
class JteViewComponentAutoConfiguration(
private val viewComponentProperties: ViewComponentProperties,
private val applicationContext: ApplicationContext
private val viewComponentProperties: ViewComponentProperties
) {
@Bean
fun jteViewContextAspect(templateEngine: TemplateEngine): JteViewContextAspect {
return JteViewContextAspect(templateEngine, viewComponentProperties)
}

@Bean
@ConditionalOnMissingBean(
JteViewResolver::class
)
fun jteViewResolver(templateEngine: TemplateEngine): JteViewResolver {
fun jteViewComponentResolver(templateEngine: TemplateEngine): JteViewResolver {
if(!StringUtils.hasText(viewComponentProperties.jteTemplateSuffix)){
throw ViewComponentException("You need to set jteTemplateSuffix")
}
Expand Down
6 changes: 3 additions & 3 deletions jte/kte/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ plugins {
}

group = "de.tschuehly"
version = "0.7.3"
version = "0.7.4"
java.sourceCompatibility = JavaVersion.VERSION_17

repositories {
mavenCentral()
}
dependencies {
api("de.tschuehly:spring-view-component-core:0.7.3")
api("de.tschuehly:spring-view-component-jte:0.7.3")
api("de.tschuehly:spring-view-component-core:0.7.4")
api("de.tschuehly:spring-view-component-jte:0.7.4")
api("gg.jte:jte-kotlin:3.1.9")

testImplementation("org.springframework.boot:spring-boot-starter-actuator")
Expand Down
4 changes: 2 additions & 2 deletions thymeleaf/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ plugins {
}

group = "de.tschuehly"
version = "0.7.3"
version = "0.7.4"
java.sourceCompatibility = JavaVersion.VERSION_17

repositories {
mavenCentral()
}

dependencies {
api("de.tschuehly:spring-view-component-core:0.7.3")
api("de.tschuehly:spring-view-component-core:0.7.4")
implementation("org.springframework.boot:spring-boot-starter-web")
implementation("org.springframework.boot:spring-boot-starter-thymeleaf")
implementation("org.springframework.boot:spring-boot-devtools")
Expand Down

0 comments on commit 71ebd0e

Please sign in to comment.