@@ -41,39 +41,14 @@ lazy val buildSettings = Def.settings(
41
41
Compile / parallelExecution := true
42
42
)
43
43
44
- lazy val publishSetting = {
45
- publishTo := {
46
- val nexus = " https://oss.sonatype.org/"
47
- if (isSnapshot.value)
48
- Some (" snapshots" at nexus + " content/repositories/snapshots" )
49
- else
50
- Some (" staging" at nexus + " service/local/staging/deploy/maven2" )
51
- }
52
- }
53
-
54
- lazy val credentialsSetting = credentials ++= {
55
- Seq (" build.publish.user" , " build.publish.password" ).map(k => Option (System .getProperty(k))) match {
56
- case Seq (Some (user), Some (pass)) =>
57
- Seq (Credentials (" Sonatype Nexus Repository Manager" , " oss.sonatype.org" , user, pass))
58
- case _ =>
59
- val x = Path .userHome / " .ivy2" / " .credentials"
60
- if (x.exists) {
61
- Seq (Credentials (x))
62
- } else {
63
- Nil
64
- }
65
- }
66
- }
67
-
68
44
val scalazVersion = " 7.3.8"
69
45
val poiVersion = " 5.2.5"
70
46
71
47
lazy val standardSettings = Def .settings(
72
48
buildSettings,
49
+ licenses := List (" Apache-2.0" -> url(" http://www.apache.org/licenses/LICENSE-2.0" )),
73
50
name := " poi-scala" ,
74
51
Test / fork := true ,
75
- releaseCrossBuild := true ,
76
- releasePublishArtifactsAction := PgpKeys .publishSigned.value,
77
52
libraryDependencies ++= {
78
53
Seq (
79
54
" org.apache.poi" % " poi" % poiVersion,
@@ -90,23 +65,9 @@ lazy val standardSettings = Def.settings(
90
65
conflictWarning.value
91
66
}
92
67
},
93
- publishMavenStyle := true ,
94
68
Test / publishArtifact := false ,
95
- credentialsSetting,
96
- publishSetting,
97
69
pomExtra := (
98
70
<url >https:// github.com/ folone/ poi.scala</url >
99
- <licenses >
100
- <license >
101
- <name >Apache License </name >
102
- <url >http:// opensource.org/ licenses/ Apache - 2.0 </url >
103
- <distribution >repo</distribution >
104
- </license >
105
- </licenses >
106
- <scm >
107
- <url >git@ github.com: folone/ poi.scala.git</url >
108
- <connection >scm: git: git@ github.com: folone/ poi.scala.git</connection >
109
- </scm >
110
71
<developers >
111
72
{
112
73
Seq (
0 commit comments