File tree 4 files changed +36
-40
lines changed
4 files changed +36
-40
lines changed Original file line number Diff line number Diff line change 1
1
enablePlugins(JavaAppPackaging )
2
2
3
3
Universal / mappings += {
4
- // we are using the reference.conf as default application.conf
5
- // the user can override settings here
6
- val conf = (Compile / resourceDirectory).value / " reference.conf"
7
- conf -> " conf/application.conf"
4
+ // we are using the reference.conf as default application.conf
5
+ // the user can override settings here
6
+ val conf = (Compile / resourceDirectory).value / " reference.conf"
7
+ conf -> " conf/application.conf"
8
8
}
9
9
10
10
// add jvm parameter for typesafe config
11
11
bashScriptExtraDefines += """ addJava "-Dconfig.file=${app_home}/../conf/application.conf""""
12
-
Original file line number Diff line number Diff line change 1
- addSbtPlugin(" com.github.sbt" % " sbt-release" % " 1.0.15" )
2
- addSbtPlugin(" com.github.sbt" % " sbt-pgp" % " 2.1.2" )
3
- addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 3.9.7" )
4
-
5
- addSbtPlugin(" com.timushev.sbt" % " sbt-updates" % " 0.5.3" )
6
-
7
- addSbtPlugin(" com.typesafe.sbt" % " sbt-native-packager" % " 1.7.6" )
8
-
9
- addSbtPlugin(" com.typesafe.sbt" % " sbt-twirl" % " 1.5.1" )
1
+ addSbtPlugin(" com.github.sbt" % " sbt-release" % " 1.0.15" )
2
+ addSbtPlugin(" com.github.sbt" % " sbt-pgp" % " 2.1.2" )
3
+ addSbtPlugin(" org.xerial.sbt" % " sbt-sonatype" % " 3.9.7" )
4
+ addSbtPlugin(" com.timushev.sbt" % " sbt-updates" % " 0.5.3" )
5
+ addSbtPlugin(" com.typesafe.sbt" % " sbt-native-packager" % " 1.7.6" )
6
+ addSbtPlugin(" com.typesafe.sbt" % " sbt-twirl" % " 1.5.1" )
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ Test / publishArtifact := false
7
7
publishTo := Some (if (isSnapshot.value) Opts .resolver.sonatypeSnapshots else Opts .resolver.sonatypeStaging)
8
8
9
9
Global / PgpKeys .useGpg := true // workaround with pgp and sbt 1.2.x
10
- pgpSecretRing := pgpPublicRing.value // workaround with pgp and sbt 1.2.x
10
+ pgpSecretRing := pgpPublicRing.value // workaround with pgp and sbt 1.2.x
11
11
12
12
pomExtra in Global := {
13
13
<developers >
@@ -19,22 +19,22 @@ pomExtra in Global := {
19
19
</developers >
20
20
}
21
21
22
- releaseTagComment := s " Releasing ${(ThisBuild / version).value}"
23
- releaseCommitMessage := s " Setting version to ${(ThisBuild / version).value}"
22
+ releaseTagComment := s " Releasing ${(ThisBuild / version).value}"
23
+ releaseCommitMessage := s " Setting version to ${(ThisBuild / version).value}"
24
24
releaseNextCommitMessage := s " [ci skip] Setting version to ${(ThisBuild / version).value}"
25
25
26
26
import ReleaseTransformations ._
27
27
releaseProcess := Seq [ReleaseStep ](
28
- checkSnapshotDependencies,
29
- inquireVersions,
30
- // runClean,
31
- runTest,
32
- setReleaseVersion,
33
- commitReleaseVersion,
34
- tagRelease,
35
- publishArtifacts,
36
- setNextVersion,
37
- commitNextVersion,
38
- releaseStepCommand(" sonatypeReleaseAll" ),
39
- pushChanges
40
- )
28
+ checkSnapshotDependencies,
29
+ inquireVersions,
30
+ // runClean,
31
+ runTest,
32
+ setReleaseVersion,
33
+ commitReleaseVersion,
34
+ tagRelease,
35
+ publishArtifacts,
36
+ setNextVersion,
37
+ commitNextVersion,
38
+ releaseStepCommand(" sonatypeReleaseAll" ),
39
+ pushChanges
40
+ )
Original file line number Diff line number Diff line change 1
-
2
- Compile / resourceGenerators += Def .task {
3
- val dir = (Compile / sourceManaged).value
4
- val projectName = name.value
5
- val projectGroup = organization.value
6
- val projectPage = homepage.value.map(_.toString).getOrElse(" https://github.com/dacr" )
1
+ Compile / resourceGenerators += Def .task {
2
+ val dir = (Compile / sourceManaged).value
3
+ val projectName = name.value
4
+ val projectGroup = organization.value
5
+ val projectPage = homepage.value.map(_.toString).getOrElse(" https://github.com/dacr" )
7
6
val projectVersion = version.value
8
- val buildDateTime = java.time.Instant .now().toString
9
- val buildUUID = java.util.UUID .randomUUID.toString
10
- val file = dir / " cem-meta.conf"
11
- IO .write(file,
7
+ val buildDateTime = java.time.Instant .now().toString
8
+ val buildUUID = java.util.UUID .randomUUID.toString
9
+ val file = dir / " cem-meta.conf"
10
+ IO .write(
11
+ file,
12
12
s """ code-examples-manager-config {
13
13
| meta-info {
14
14
| project-name = " $projectName"
You can’t perform that action at this time.
0 commit comments