1
- homepage := Some (url(" https://github.com/scala-native/scala-native-loop" ))
2
- licenses := Seq (
3
- " Apache 2.0" -> url(" http://www.apache.org/licenses/LICENSE-2.0" )
4
- )
5
-
6
1
Global / onChangedBuildSource := ReloadOnSourceChanges
7
2
8
- publishMavenStyle := true
9
- Test / publishArtifact := false
10
- pomIncludeRepository := { _ => false }
11
- ThisBuild / publishTo := {
12
- val nexus = " https://oss.sonatype.org/"
13
- if (isSnapshot.value)
14
- Some (" snapshots" at nexus + " content/repositories/snapshots" )
15
- else
16
- Some (" releases" at nexus + " service/local/staging/deploy/maven2" )
17
- }
18
- scmInfo := Some (
19
- ScmInfo (
20
- url(" https://github.com/scala-native/scala-native-loop" ),
21
- " scm:git:[email protected] :scala-native/scala-native-loop.git"
3
+ inThisBuild(
4
+ Seq (
5
+ organization := " com.github.lolgab" ,
6
+ version := " 0.2.0-SNAPSHOT" ,
7
+ scalaVersion := scala212
22
8
)
23
9
)
24
- developers := List (
25
- Developer (
26
- " rwhaling" ,
27
- " Richard Whaling" ,
28
-
29
- url(" http://whaling.dev" )
10
+
11
+ val publishSettings = Seq (
12
+ publishMavenStyle := true ,
13
+ Test / publishArtifact := false ,
14
+ pomIncludeRepository := { _ => false },
15
+ homepage := Some (url(" https://github.com/scala-native/scala-native-loop" )),
16
+ licenses := Seq (
17
+ " Apache 2.0" -> url(" http://www.apache.org/licenses/LICENSE-2.0" )
18
+ ),
19
+ publishTo := sonatypePublishToBundle.value,
20
+ scmInfo := Some (
21
+ ScmInfo (
22
+ url(" https://github.com/lolgab/scala-native-loop" ),
23
+ " scm:git:[email protected] :lolgab/scala-native-loop.git"
24
+ )
25
+ ),
26
+ developers := List (
27
+ Developer (
28
+ " rwhaling" ,
29
+ " Richard Whaling" ,
30
+
31
+ url(" http://whaling.dev" )
32
+ )
30
33
)
31
34
)
32
35
36
+ val noPublishSettings = Seq (
37
+ publish := {},
38
+ publishLocal := {},
39
+ publishArtifact := false ,
40
+ skip in publish := true
41
+ )
42
+
43
+ val scala213 = " 2.13.4"
44
+ val scala212 = " 2.12.13"
45
+ val scala211 = " 2.11.12"
46
+
33
47
lazy val commonSettings = Seq (
34
- organization := " dev.whaling" ,
35
- version := " 0.1.1-SNAPSHOT" ,
36
- scalaVersion := " 2.11.12" ,
48
+ scalaVersion := scala213,
49
+ crossScalaVersions := Seq (scala213, scala212, scala211),
37
50
scalacOptions ++= Seq (
38
51
" -deprecation" ,
39
52
" -encoding" ,
40
53
" utf8" ,
41
54
" -feature" ,
42
55
" -unchecked" ,
43
56
" -Xfatal-warnings" ,
44
- " -Ywarn-unused-import "
57
+ // "-Wunused:imports "
45
58
),
46
- Compile / doc / scalacOptions -= " -Xfatal-warnings " ,
47
- libraryDependencies += " com.lihaoyi " %%% " utest" % " 0.7.5" % Test ,
59
+ Compile / doc / sources := Seq .empty ,
60
+ libraryDependencies += " com.github.lolgab " %%% " utest" % " 0.7.5" % Test ,
48
61
testFrameworks += new TestFramework (" utest.runner.Framework" ),
49
62
Test / nativeLinkStubs := true ,
50
- publish / skip := true ,
51
- publishLocal / skip := true
52
63
)
53
64
54
65
lazy val examplesSettings = Seq (
@@ -59,38 +70,39 @@ lazy val core = project
59
70
.in(file(" core" ))
60
71
.settings(name := " native-loop-core" )
61
72
.settings(commonSettings)
62
- .settings(publish / skip := false )
63
- .settings(publishLocal / skip := false )
73
+ .settings(publishSettings)
64
74
.enablePlugins(ScalaNativePlugin )
65
75
66
76
lazy val pipe = project
67
77
.in(file(" pipe" ))
68
78
.settings(commonSettings)
69
79
.settings(test := {})
80
+ .settings(noPublishSettings)
70
81
.enablePlugins(ScalaNativePlugin )
71
82
.dependsOn(core)
72
83
73
84
lazy val client = project
74
85
.in(file(" client" ))
75
86
.settings(commonSettings)
76
87
.settings(test := {})
88
+ .settings(noPublishSettings)
77
89
.enablePlugins(ScalaNativePlugin )
78
90
.dependsOn(core)
79
91
80
92
lazy val server = project
81
93
.in(file(" server" ))
82
94
.settings(commonSettings)
83
95
.settings(test := {})
96
+ .settings(noPublishSettings)
84
97
.enablePlugins(ScalaNativePlugin )
85
98
.dependsOn(core)
86
99
87
100
lazy val scalaJsCompat = project
88
101
.in(file(" scalajs-compat" ))
89
102
.settings(name := " native-loop-js-compat" )
90
103
.settings(commonSettings)
104
+ .settings(publishSettings)
91
105
.settings(test := {})
92
- .settings(publish / skip := false )
93
- .settings(publishLocal / skip := false )
94
106
.enablePlugins(ScalaNativePlugin )
95
107
.dependsOn(core)
96
108
@@ -100,6 +112,7 @@ lazy val serverExample = project
100
112
commonSettings,
101
113
examplesSettings
102
114
)
115
+ .settings(noPublishSettings)
103
116
.enablePlugins(ScalaNativePlugin )
104
117
.dependsOn(core, server, client)
105
118
@@ -109,6 +122,7 @@ lazy val pipeExample = project
109
122
commonSettings,
110
123
examplesSettings
111
124
)
125
+ .settings(noPublishSettings)
112
126
.enablePlugins(ScalaNativePlugin )
113
127
.dependsOn(core, pipe, client)
114
128
@@ -118,6 +132,7 @@ lazy val curlExample = project
118
132
commonSettings,
119
133
examplesSettings
120
134
)
135
+ .settings(noPublishSettings)
121
136
.enablePlugins(ScalaNativePlugin )
122
137
.dependsOn(core, client)
123
138
@@ -127,5 +142,6 @@ lazy val timerExample = project
127
142
commonSettings,
128
143
examplesSettings
129
144
)
145
+ .settings(noPublishSettings)
130
146
.enablePlugins(ScalaNativePlugin )
131
147
.dependsOn(core)
0 commit comments