Skip to content

Repository files navigation

Maven Central

https://github.com/DatekWireless/slim-spring-webmvc

Usage

There is a reference application at https://github.com/DatekWireless/slim-spring-mvc-sample .

build.gradle

dependencies {
  implementation 'no.datek:slim-spring-webmvc:0.+'
}

Config/Application

@ComponentScan("no.datek.slim")

Building

Requires JDK 25 (the Gradle toolchain targets Java 25) and builds with Gradle 9.6 via the wrapper:

./gradlew build

Update JRuby

Edit build.gradle and set the desired JRuby version:

final String JRUBY_VERSION = '10.0.4.0';

Update gems

Run the provided script:

    chruby jruby
    jruby ./update_gems.rb

Release to Maven Central

Activate the new version in downstream apps (e.g. dlc-server)

Publishing to Maven Central does not by itself upgrade the consuming apps. Each app declares a dynamic version constraint (e.g. implementation 'no.datek:slim-spring-webmvc:2.+' in build.gradle), but the resolved version is pinned in gradle.lockfile. A new release is ignored until the lock is rewritten.

In the downstream app (e.g. dlc-server):

  1. If the release crossed a major version, bump the constraint in build.gradle to match (e.g. 2.+3.+). Within the same major line, leave it as-is.

  2. Make sure the local composite build is not overriding the published artifact — the includeBuild '../slim-spring-webmvc' line in settings.gradle must be commented out (it is only for local development against a working copy).

  3. Refresh the dependency lock so the new version is resolved and pinned:

     ./gradlew --refresh-dependencies --write-locks resolveAndLockAll
    
  4. Verify gradle.lockfile now points at the new version, then build/test, commit, and push.

About

Framework for using slim templates with spring-webmvc (https://github.com/slim-template/slim)

Resources

Stars

1 star

Watchers

3 watching

Forks

Releases

Packages

Used by

Contributors

Languages