Commit 7d7767d7 authored by Linus K.'s avatar Linus K.
Browse files

Initial commit

parents
/**/target
/out
**.iml
**/.idea
<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>
<groupId>me.linuscde.plugins</groupId>
<artifactId>kotlin</artifactId>
<name>Kotlin</name>
<description>Kotlin Libs</description>
<version>${mcplugins.kotlin.version}</version>
<parent>
<groupId>me.linuscde</groupId>
<artifactId>mcplugins</artifactId>
<version>${revision}</version>
</parent>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Compile Java and Kotlin code -->
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
</plugin>
<!-- Make jar with all dependencies included -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
name: Kotlin
version: ${project.version}
author: ${mcplugins.author}
api-version: ${mcplugins.api-version}
main: me.linuscde.mcplugins.kotlin.Plugin
package me.linuscde.mcplugins.kotlin
import org.bukkit.plugin.java.JavaPlugin
class Plugin: JavaPlugin() { }
\ No newline at end of file
<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>
<groupId>me.linuscde.plugins</groupId>
<artifactId>teleportastic</artifactId>
<name>Teleportastic</name>
<description>Commands and Systems around teleportation</description>
<version>${mcplugins.teleportastic.version}</version>
<parent>
<groupId>me.linuscde</groupId>
<artifactId>mcplugins</artifactId>
<version>${revision}</version>
</parent>
<dependencies>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>me.linuscde.plugins</groupId>
<artifactId>kotlin</artifactId>
<version>${mcplugins.kotlin.version}</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!-- Compile Java and Kotlin code -->
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
</plugin>
<!-- Make jar with all dependencies included -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
name: Teleportastic
version: ${project.version}
author: ${mcplugins.author}
api-version: ${mcplugins.api-version}
depend:
- Kotlin
main: me.linuscde.mcplugins.teleportastic.Plugin
package me.linuscde.mcplugins.teleportastic
import org.bukkit.Bukkit
import org.bukkit.plugin.java.JavaPlugin
import java.util.logging.Level
class Plugin: JavaPlugin() {
override fun onEnable() {
logger.log(Level.INFO, "Plugin enabled")
}
override fun onDisable() {
logger.log(Level.INFO, "Plugin disabled")
}
}
\ No newline at end of file
<?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>
<groupId>me.linuscde</groupId>
<artifactId>mcplugins</artifactId>
<name>McPlugins</name>
<version>${revision}</version> <!-- Useless -->
<packaging>pom</packaging>
<properties> <!-- Global (all childs have these) -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<revision>0.1.0-SNAPSHOT</revision>
<mcplugins.kotlin.version>1.0.0</mcplugins.kotlin.version>
<mcplugins.teleportastic.version>0.1.0</mcplugins.teleportastic.version>
<spigot-api.version>1.16.3-R0.1-SNAPSHOT</spigot-api.version>
<mcplugins.author>LinusCDE</mcplugins.author>
<mcplugins.api-version>1.16</mcplugins.api-version> <!-- Used in plugin.yml api-version entry -->
<kotlin.version>1.3.70</kotlin.version>
<kotlin.compiler.incremental>true</kotlin.compiler.incremental>
<kotlin.compiler.jvmTarget>1.8</kotlin.compiler.jvmTarget>
</properties>
<modules>
<module>Kotlin</module>
<module>Teleportastic</module>
</modules>
<repositories>
<!-- This adds the Spigot Maven repository to the build -->
<repository>
<id>spigot-repo</id>
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencyManagement> <!-- Specify the default versions for modules -->
<dependencies>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>${kotlin.version}</version>
</dependency>
<dependency>
<groupId>org.spigotmc</groupId>
<artifactId>spigot-api</artifactId>
<version>${spigot-api.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<filtering>true</filtering> <!-- Insert variables like used in the pom.xml files -->
<directory>res</directory>
</resource>
</resources>
<pluginManagement> <!-- Specifiy the default versions and settings for modules -->
<plugins>
<!-- Compile Java and Kotlin code -->
<plugin>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-maven-plugin</artifactId>
<version>${kotlin.version}</version>
<configuration>
<args>
<arg>-Xopt-in=kotlin.ExperimentalUnsignedTypes</arg>
</args>
</configuration>
<executions>
<execution>
<id>compile</id>
<goals> <goal>compile</goal> </goals>
<configuration>
<sourceDirs>
<sourceDir>src</sourceDir>
</sourceDirs>
</configuration>
</execution>
<execution>
<id>test-compile</id>
<goals> <goal>test-compile</goal> </goals>
<configuration>
<sourceDirs>
<sourceDir>src</sourceDir>
</sourceDirs>
</configuration>
</execution>
</executions>
</plugin>
<!-- Make jar without any dependencies included -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<!-- <mainClass>${main.class}</mainClass> -->
</manifest>
</archive>
</configuration>
</plugin>
<!-- Make jar with all dependencies included -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<version>2.6</version>
<executions>
<execution>
<id>make-assembly</id>
<phase>package</phase>
<goals> <goal>single</goal> </goals>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<appendAssemblyId>false</appendAssemblyId>
<finalName>../../out/${project.name}</finalName>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment