Skip to content

Commit 8c733d7

Browse files
committed
POM: tidy up configuration blocks
And factor out version strings to properties.
1 parent 64681bf commit 8c733d7

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

pom.xml

+33-33
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,39 @@
9696
<releaseProfiles>sign,deploy-to-scijava</releaseProfiles>
9797

9898
<scala.version>3.3.0</scala.version>
99+
<scala-maven-plugin.version>4.8.1</scala-maven-plugin.version>
99100
</properties>
100101

102+
<dependencies>
103+
<!-- SciJava dependencies -->
104+
<dependency>
105+
<groupId>org.scijava</groupId>
106+
<artifactId>scijava-common</artifactId>
107+
</dependency>
108+
109+
<!-- Scala dependencies -->
110+
<dependency>
111+
<groupId>org.scala-lang</groupId>
112+
<artifactId>scala3-compiler_3</artifactId>
113+
<version>${scala.version}</version>
114+
<exclusions>
115+
</exclusions>
116+
</dependency>
101117

102-
<build>
103-
<plugins>
104-
<plugin>
105-
<groupId>net.alchim31.maven</groupId>
106-
<artifactId>scala-maven-plugin</artifactId>
107-
<version>4.8.1</version>
118+
<!-- Test dependencies -->
119+
<dependency>
120+
<groupId>junit</groupId>
121+
<artifactId>junit</artifactId>
122+
<scope>test</scope>
123+
</dependency>
124+
</dependencies>
125+
126+
<build>
127+
<plugins>
128+
<plugin>
129+
<groupId>net.alchim31.maven</groupId>
130+
<artifactId>scala-maven-plugin</artifactId>
131+
<version>${scala-maven-plugin.version}</version>
108132
<configuration>
109133
<args>
110134
<arg>-unchecked</arg>
@@ -132,31 +156,7 @@
132156
</goals>
133157
</execution>
134158
</executions>
135-
</plugin>
136-
</plugins>
137-
</build>
138-
139-
<dependencies>
140-
<!-- SciJava dependencies -->
141-
<dependency>
142-
<groupId>org.scijava</groupId>
143-
<artifactId>scijava-common</artifactId>
144-
</dependency>
145-
146-
<!-- Scala dependencies -->
147-
<dependency>
148-
<groupId>org.scala-lang</groupId>
149-
<artifactId>scala3-compiler_3</artifactId>
150-
<version>${scala.version}</version>
151-
<exclusions>
152-
</exclusions>
153-
</dependency>
154-
155-
<!-- Test dependencies -->
156-
<dependency>
157-
<groupId>junit</groupId>
158-
<artifactId>junit</artifactId>
159-
<scope>test</scope>
160-
</dependency>
161-
</dependencies>
159+
</plugin>
160+
</plugins>
161+
</build>
162162
</project>

0 commit comments

Comments
 (0)