Transform project to Maven
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -11,9 +11,8 @@ bin/
|
|||||||
.classpath
|
.classpath
|
||||||
.project
|
.project
|
||||||
|
|
||||||
## GRADLE ##
|
## MAVEN ##
|
||||||
.gradle/
|
target/
|
||||||
build/
|
|
||||||
|
|
||||||
## OTHER ##
|
## OTHER ##
|
||||||
libs/
|
libs/
|
||||||
|
|||||||
20
build.gradle
20
build.gradle
@@ -1,20 +0,0 @@
|
|||||||
apply plugin: 'java'
|
|
||||||
apply plugin: 'idea'
|
|
||||||
apply plugin: 'eclipse'
|
|
||||||
|
|
||||||
repositories {
|
|
||||||
mavenCentral()
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
def lwjgl_version = '3.0.0b';
|
|
||||||
compile (['org.lwjgl:lwjgl:' + lwjgl_version],
|
|
||||||
['org.lwjgl:lwjgl-platform:' + lwjgl_version + ':natives-linux'])
|
|
||||||
}
|
|
||||||
|
|
||||||
sourceSets {
|
|
||||||
main {
|
|
||||||
java.srcDirs = ['src/java']
|
|
||||||
resources.srcDirs = ['src/resources']
|
|
||||||
}
|
|
||||||
}
|
|
||||||
56
pom.xml
Normal file
56
pom.xml
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
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>
|
||||||
|
<name>LWJGL Tools</name>
|
||||||
|
|
||||||
|
<properties>
|
||||||
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
<java-version>1.8</java-version>
|
||||||
|
<lwjgl-version>3.0.0b</lwjgl-version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<groupId>ru.dmitriymx</groupId>
|
||||||
|
<artifactId>lwjgl-tools</artifactId>
|
||||||
|
<packaging>jar</packaging>
|
||||||
|
<version>1.0-SNAPSHOT</version>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.lwjgl</groupId>
|
||||||
|
<artifactId>lwjgl</artifactId>
|
||||||
|
<version>${lwjgl-version}</version>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.lwjgl</groupId>
|
||||||
|
<artifactId>lwjgl-platform</artifactId>
|
||||||
|
<version>${lwjgl-version}</version>
|
||||||
|
<classifier>natives-linux</classifier>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.lwjgl</groupId>
|
||||||
|
<artifactId>lwjgl-platform</artifactId>
|
||||||
|
<version>${lwjgl-version}</version>
|
||||||
|
<classifier>natives-windows</classifier>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<finalName>${artifactId}-${version}</finalName>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
|
<version>3.5.1</version>
|
||||||
|
<configuration>
|
||||||
|
<source>${java-version}</source>
|
||||||
|
<target>${java-version}</target>
|
||||||
|
<encoding>UTF-8</encoding>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
</project>
|
||||||
Reference in New Issue
Block a user