Merge pull request #243 from Erlkoenig90/migrate-gradle

Switch build system to gradle
This commit is contained in:
afischerdev 2021-06-29 11:46:51 +02:00 committed by GitHub
commit e210b92225
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
57 changed files with 685 additions and 591 deletions

1
brouter-server/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/build/

View file

@ -0,0 +1,20 @@
plugins {
id 'application'
}
application {
mainClassName = 'btools.server.BRouter'
jar {
manifest {
attributes "Main-Class": "$mainClassName"
}
}
}
dependencies {
implementation('junit:junit:4.13')
implementation project(':brouter-util')
implementation project(':brouter-core')
implementation project(':brouter-mapaccess')
}

View file

@ -1,60 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.btools</groupId>
<artifactId>brouter</artifactId>
<version>1.6.1</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>brouter-server</artifactId>
<packaging>jar</packaging>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<mainClass>btools.server.BRouter</mainClass>
</manifest>
</archive>
</configuration>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>org.btools</groupId>
<artifactId>brouter-core</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.btools</groupId>
<artifactId>brouter-map-creator</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>