switch from gradle to maven
This commit is contained in:
parent
d902aa1483
commit
46382403af
31
README.md
31
README.md
|
@ -5,30 +5,13 @@ This is *not* intended to be a generic use-everywhere type of library.
|
|||
|
||||
**This library is still _very much_ a work in progress!**
|
||||
|
||||
## Using
|
||||
|
||||
build.gradle
|
||||
|
||||
repositories {
|
||||
maven { url "http://maven.blarg.ca" }
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile "ca.blarg.gdx:gdx-toolbox:0.1-SNAPSHOT"
|
||||
}
|
||||
|
||||
pom.xml
|
||||
|
||||
<repository>
|
||||
<id>blarg.ca</id>
|
||||
<url>http://maven.blarg.ca</url>
|
||||
</repository>
|
||||
|
||||
<dependency>
|
||||
<groupId>ca.blarg.gdx</groupId>
|
||||
<artifactId>gdx-toolbox</artifactId>
|
||||
<version>0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
```xml
|
||||
<dependency>
|
||||
<groupId>ca.blarg.gdx</groupId>
|
||||
<artifactId>gdx-toolbox</artifactId>
|
||||
<version>0.1-SNAPSHOT</version>
|
||||
</dependency>
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
|
|
41
build.gradle
41
build.gradle
|
@ -1,41 +0,0 @@
|
|||
apply plugin: "java"
|
||||
apply plugin: "maven"
|
||||
apply plugin: "eclipse"
|
||||
apply plugin: "idea"
|
||||
|
||||
group = "ca.blarg.gdx"
|
||||
version = "0.1-SNAPSHOT"
|
||||
ext.appName = "gdx-toolbox"
|
||||
ext.gdxVersion = "1.0.0"
|
||||
|
||||
sourceCompatibility = 1.6
|
||||
|
||||
configurations {
|
||||
deployerJars
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url "http://oss.sonatype.org/content/repositories/releases/" }
|
||||
mavenLocal()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile "com.badlogicgames.gdx:gdx:$gdxVersion"
|
||||
compile "com.badlogicgames.gdx:gdx-freetype:$gdxVersion"
|
||||
deployerJars "org.apache.maven.wagon:wagon-ssh:2.2"
|
||||
}
|
||||
|
||||
uploadArchives {
|
||||
repositories.mavenDeployer {
|
||||
configuration = configurations.deployerJars
|
||||
uniqueVersion = false
|
||||
repository(url: mavenDeployUrl) {
|
||||
authentication(userName: mavenDeployUser, privateKey: mavenDeployPrivateKeyFile)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
eclipse.project {
|
||||
name = appName
|
||||
}
|
36
pom.xml
Normal file
36
pom.xml
Normal file
|
@ -0,0 +1,36 @@
|
|||
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>ca.blarg.gdx</groupId>
|
||||
<artifactId>gdx-toolbox</artifactId>
|
||||
<version>0.1-SNAPSHOT</version>
|
||||
|
||||
<name>gdx-toolbox</name>
|
||||
<description></description>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
||||
<maven.compiler.target>1.6</maven.compiler.target>
|
||||
<maven.compiler.source>1.6</maven.compiler.source>
|
||||
|
||||
<gdx.version>1.0.0</gdx.version>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.badlogicgames.gdx</groupId>
|
||||
<artifactId>gdx</artifactId>
|
||||
<version>${gdx.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.badlogicgames.gdx</groupId>
|
||||
<artifactId>gdx-freetype</artifactId>
|
||||
<version>${gdx.version}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
Loading…
Reference in a new issue