@@ -89,7 +89,67 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
89
89
}
90
90
}
91
91
92
- def sharedSettings : Seq [Setting [_]] = Seq (
92
+ def commonSharedSettings : Seq [Setting [_]] = Seq (
93
+ javaHome := getJavaHome(scalaBinaryVersion.value),
94
+ version := releaseVersion,
95
+ resolvers += " Sonatype Public" at " https://oss.sonatype.org/content/groups/public" ,
96
+ publishTo := {
97
+ val nexus = " https://oss.sonatype.org/"
98
+ if (version.value.trim.endsWith(" SNAPSHOT" ))
99
+ Some (" publish-snapshots" at nexus + " content/repositories/snapshots" )
100
+ else
101
+ Some (" publish-releases" at nexus + " service/local/staging/deploy/maven2" )
102
+ },
103
+ publishMavenStyle := true ,
104
+ publishArtifact in Test := false ,
105
+ pomIncludeRepository := { _ => false },
106
+ pomExtra := (
107
+ <url >http:// www.scalatest.org</url >
108
+ <licenses >
109
+ <license >
110
+ <name >the Apache License , ASL Version 2.0 </name >
111
+ <url >http:// www.apache.org/ licenses/ LICENSE - 2.0 </url >
112
+ <distribution >repo</distribution >
113
+ </license >
114
+ </licenses >
115
+ <scm >
116
+ <url >https:// github.com/ scalatest/ scalatest</url >
117
+ <connection >scm: git: git@ github.com: scalatest/ scalatest.git</connection >
118
+ <developerConnection >
119
+ scm: git: git@ github.com: scalatest/ scalatest.git
120
+ </developerConnection >
121
+ </scm >
122
+ <developers >
123
+ <developer >
124
+ <id >bvenners</id >
125
+ <name >Bill Venners </name >
126
+ <email >bill@ artima.com</email >
127
+ </developer >
128
+ <developer >
129
+ <id >gcberger</id >
130
+ <name >George Berger </name >
131
+ <email >george.berger@ gmail.com</email >
132
+ </developer >
133
+ <developer >
134
+ <id >cheeseng</id >
135
+ <name >Chua Chee Seng </name >
136
+ <email >cheeseng@ amaseng.com</email >
137
+ </developer >
138
+ </developers >
139
+ ),
140
+ credentials += getNexusCredentials,
141
+ pgpSecretRing := file(getGPGFilePath),
142
+ pgpPassphrase := getGPGPassphase
143
+ )
144
+
145
+ def sharedSettings : Seq [Setting [_]] =
146
+ commonSharedSettings ++ Seq (
147
+ scalaVersion := " 2.13.0" ,
148
+ crossScalaVersions := supportedScalaVersions,
149
+ libraryDependencies ++= scalaLibraries(scalaVersion.value)
150
+ )
151
+
152
+ /* Seq(
93
153
javaHome := getJavaHome(scalaBinaryVersion.value),
94
154
scalaVersion := "2.13.0",
95
155
crossScalaVersions := supportedScalaVersions,
@@ -149,7 +209,7 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
149
209
credentials += getNexusCredentials,
150
210
pgpSecretRing := file(getGPGFilePath),
151
211
pgpPassphrase := getGPGPassphase
152
- )
212
+ )*/
153
213
154
214
lazy val scalatestDocSettings = Seq (
155
215
docsrcDirSetting,
@@ -392,7 +452,6 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
392
452
).settings(osgiSettings : _* ).settings(
393
453
OsgiKeys .exportPackage := Seq (
394
454
" org.scalatest" ,
395
- " org.scalatest.compatible" ,
396
455
" org.scalatest.concurrent" ,
397
456
" org.scalatest.check" ,
398
457
" org.scalatest.diagrams" ,
@@ -438,7 +497,7 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
438
497
" Bundle-Vendor" -> " Artima, Inc." ,
439
498
" Main-Class" -> " org.scalatest.tools.Runner"
440
499
)
441
- ).dependsOn(scalacticMacro % " compile-internal, test-internal" , scalactic)
500
+ ).dependsOn(scalatestCompatible, scalacticMacro % " compile-internal, test-internal" , scalactic)
442
501
443
502
lazy val scalatestTest = Project (" scalatest-test" , file(" scalatest-test" ))
444
503
.settings(sharedSettings : _* )
@@ -543,9 +602,9 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
543
602
544
603
lazy val rootProject = scalatestApp
545
604
546
- lazy val scalatestCompatible = Project (" scalatestCompatible" , file(" modules/jvm/ scalatest-compatible" ))
605
+ lazy val scalatestCompatible = Project (" scalatestCompatible" , file(" scalatest-compatible" ))
547
606
.enablePlugins(SbtOsgi )
548
- .settings(sharedSettings : _* )
607
+ .settings(commonSharedSettings : _* )
549
608
.settings(scalatestDocSettings : _* )
550
609
.settings(
551
610
projectTitle := " ScalaTest Compatible" ,
@@ -561,11 +620,6 @@ object ScalatestBuild extends BuildCommons with DottyBuild with NativeBuild with
561
620
Seq .empty[File ]
562
621
}.taskValue
563
622
},
564
- sourceGenerators in Compile += {
565
- Def .task{
566
- GenModules .genScalaTestCompatible((javaSourceManaged in Compile ).value, version.value, scalaVersion.value)
567
- }.taskValue
568
- },
569
623
scalatestDocSettings,
570
624
mimaPreviousArtifacts := Set (organization.value %% name.value % previousReleaseVersion),
571
625
mimaCurrentClassfiles := (classDirectory in Compile ).value.getParentFile / (name.value + " _" + scalaBinaryVersion.value + " -" + releaseVersion + " .jar" )
0 commit comments