You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29-13Lines changed: 29 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Spring Boot Thin Launcher [](https://ci.spring.io/teams/spring-team/pipelines/spring-boot-thin-launcher)
2
2
3
-
A "thin" jar launcher for java apps. Version 1.0.25.RELEASE is in Maven Central, snapshots are in https://repo.spring.io/libs-snapshot. See https://github.com/spring-projects/spring-boot/issues/1813 for more discussion and ideas.
3
+
A "thin" jar launcher for java apps. Version 1.0.27.RELEASE is in Maven Central, snapshots are in https://repo.spring.io/libs-snapshot. See https://github.com/spring-projects/spring-boot/issues/1813 for more discussion and ideas.
4
4
5
5
## Getting Started
6
6
@@ -26,19 +26,19 @@ means adding it to the Spring Boot plugin declaration:
For Spring Boot 2.x you can use the newer `id` style declaration:
64
+
Or you can use the newer `id` style declaration:
57
65
58
66
```groovy
59
67
plugins {
60
68
id 'org.springframework.boot' version '2.2.4.RELEASE'
61
69
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
62
70
id 'java'
63
-
id 'maven'
64
-
id 'org.springframework.boot.experimental.thin-launcher' version '1.0.25.RELEASE'
71
+
id 'maven-publish'
72
+
id 'org.springframework.boot.experimental.thin-launcher' version '1.0.27.RELEASE'
65
73
}
66
74
67
75
group = 'com.example'
@@ -74,6 +82,14 @@ repositories {
74
82
maven { url "https://repo.spring.io/snapshot" }
75
83
maven { url "https://repo.spring.io/milestone" }
76
84
}
85
+
86
+
publishing {
87
+
publications {
88
+
maven(MavenPublication) {
89
+
from components.java
90
+
}
91
+
}
92
+
}
77
93
```
78
94
79
95
For Spring Boot 2.x snapshot versions (or older releases) you also need a `settings.gradle` with the repository configuration for the plugin. e.g. (as generated by https://start.spring.io):
@@ -150,7 +166,7 @@ with that class loader. The `pom.xml` can be in the root of the jar or
150
166
in the standard `META-INF/maven` location.
151
167
152
168
The app jar in the demo is built using the Spring Boot plugin and a
153
-
custom `Layout` (so it only builds with Spring Boot 1.5.x and above).
169
+
custom `Layout` (so it only builds with Spring Boot 2.x and above).
154
170
155
171
## Caching JARs
156
172
@@ -405,7 +421,7 @@ versions, you can change the version of the bom using
0 commit comments