|
1 |
| -import sbtassembly.MergeStrategy |
| 1 | +import Dependencies.* |
2 | 2 | import M2Resolvers.m2Resolvers
|
3 |
| -import Dependencies._ |
| 3 | +import sbtassembly.MergeStrategy |
4 | 4 |
|
5 | 5 | name := getPackageName(is_silicon, is_gpu, is_aarch64)
|
6 | 6 |
|
@@ -34,100 +34,8 @@ Compile / doc / target := baseDirectory.value / "docs/api"
|
34 | 34 | coverageExcludedPackages := ".*nlp.embeddings.*;.*ml.tensorflow.*;.*nlp.annotators.classifier.dl.*;" +
|
35 | 35 | ".*nlp.annotators.seq2seq.*;.*ml.*"
|
36 | 36 |
|
37 |
| -licenses += "Apache-2.0" -> url("https://opensource.org/licenses/Apache-2.0") |
38 |
| - |
39 | 37 | (ThisBuild / resolvers) := m2Resolvers
|
40 | 38 |
|
41 |
| -credentials += Credentials(Path.userHome / ".ivy2" / ".sbtcredentials") |
42 |
| - |
43 |
| -sonatypeProfileName := "com.johnsnowlabs.nlp" |
44 |
| - |
45 |
| -publishTo := sonatypePublishToBundle.value |
46 |
| - |
47 |
| -sonatypeRepository := "https://s01.oss.sonatype.org/service/local" |
48 |
| - |
49 |
| -sonatypeCredentialHost := "s01.oss.sonatype.org" |
50 |
| - |
51 |
| -publishTo := { |
52 |
| - val nexus = "https://s01.oss.sonatype.org/" |
53 |
| - if (isSnapshot.value) Some("snapshots" at nexus + "content/repositories/snapshots") |
54 |
| - else Some("releases" at nexus + "service/local/staging/deploy/maven2") |
55 |
| -} |
56 |
| - |
57 |
| -homepage := Some(url("https://sparknlp.org")) |
58 |
| - |
59 |
| -scmInfo := Some( |
60 |
| - ScmInfo( |
61 |
| - url("https://github.com/JohnSnowLabs/spark-nlp"), |
62 |
| - "scm:[email protected]:JohnSnowLabs/spark-nlp.git")) |
63 |
| - |
64 |
| -(ThisBuild / developers) := List( |
65 |
| - Developer( |
66 |
| - id = "saifjsl", |
67 |
| - name = "Saif Addin", |
68 |
| - |
69 |
| - url = url("https://github.com/saifjsl")), |
70 |
| - Developer( |
71 |
| - id = "maziyarpanahi", |
72 |
| - name = "Maziyar Panahi", |
73 |
| - |
74 |
| - url = url("https://github.com/maziyarpanahi")), |
75 |
| - Developer( |
76 |
| - id = "albertoandreottiATgmail", |
77 |
| - name = "Alberto Andreotti", |
78 |
| - |
79 |
| - url = url("https://github.com/albertoandreottiATgmail")), |
80 |
| - Developer( |
81 |
| - id = "danilojsl", |
82 |
| - name = "Danilo Burbano", |
83 |
| - |
84 |
| - url = url("https://github.com/danilojsl")), |
85 |
| - Developer( |
86 |
| - id = "rohit13k", |
87 |
| - name = "Rohit Kumar", |
88 |
| - |
89 |
| - url = url("https://github.com/rohit13k")), |
90 |
| - Developer( |
91 |
| - id = "aleksei-ai", |
92 |
| - name = "Aleksei Alekseev", |
93 |
| - |
94 |
| - url = url("https://github.com/aleksei-ai")), |
95 |
| - Developer( |
96 |
| - id = "showy", |
97 |
| - name = "Eduardo Muñoz", |
98 |
| - |
99 |
| - url = url("https://github.com/showy")), |
100 |
| - Developer( |
101 |
| - id = "C-K-Loan", |
102 |
| - name = "Christian Kasim Loan", |
103 |
| - |
104 |
| - url = url("https://github.com/C-K-Loan")), |
105 |
| - Developer( |
106 |
| - id = "wolliq", |
107 |
| - name = "Stefano Lori", |
108 |
| - |
109 |
| - url = url("https://github.com/wolliq")), |
110 |
| - Developer( |
111 |
| - id = "vankov", |
112 |
| - name = "Ivan Vankov", |
113 |
| - |
114 |
| - url = url("https://github.com/vankov")), |
115 |
| - Developer( |
116 |
| - id = "alinapetukhova", |
117 |
| - name = "Alina Petukhova", |
118 |
| - |
119 |
| - url = url("https://github.com/alinapetukhova")), |
120 |
| - Developer( |
121 |
| - id = "hatrungduc", |
122 |
| - name = "Devin Ha", |
123 |
| - |
124 |
| - url = url("https://github.com/hatrungduc")), |
125 |
| - Developer( |
126 |
| - id = "ahmedlone127", |
127 |
| - name = "Khawja Ahmed Lone", |
128 |
| - |
129 |
| - url = url("https://github.com/ahmedlone127"))) |
130 |
| - |
131 | 39 | lazy val analyticsDependencies = Seq(
|
132 | 40 | "org.apache.spark" %% "spark-core" % sparkVer % Provided,
|
133 | 41 | "org.apache.spark" %% "spark-mllib" % sparkVer % Provided)
|
@@ -164,8 +72,7 @@ lazy val utilDependencies = Seq(
|
164 | 72 | exclude ("org.apache.logging.log4j", "log4j-api"),
|
165 | 73 | scratchpad
|
166 | 74 | exclude ("org.apache.logging.log4j", "log4j-api"),
|
167 |
| - pdfBox |
168 |
| -) |
| 75 | + pdfBox) |
169 | 76 |
|
170 | 77 | lazy val typedDependencyParserDependencies = Seq(junit)
|
171 | 78 |
|
@@ -238,7 +145,8 @@ lazy val root = (project in file("."))
|
238 | 145 |
|
239 | 146 | (assembly / assemblyMergeStrategy) := {
|
240 | 147 | case PathList("META-INF", "versions", "9", "module-info.class") => MergeStrategy.discard
|
241 |
| - case PathList("module-info.class") => MergeStrategy.discard // Discard any module-info.class globally |
| 148 | + case PathList("module-info.class") => |
| 149 | + MergeStrategy.discard // Discard any module-info.class globally |
242 | 150 | case PathList("apache.commons.lang3", _ @_*) => MergeStrategy.discard
|
243 | 151 | case PathList("org.apache.hadoop", _ @_*) => MergeStrategy.first
|
244 | 152 | case PathList("com.amazonaws", _ @_*) => MergeStrategy.last
|
|
0 commit comments