From 938fdc0ba0949dbbdd7dfbdba8904b433b15682a Mon Sep 17 00:00:00 2001 From: NorbiPeti Date: Sun, 5 Nov 2017 21:27:51 +0100 Subject: [PATCH] Cleanup, using Maven & Java 8 --- .classpath | 27 +++++++++--- .gitignore | 1 + .project | 40 ++++++++++-------- .settings/org.eclipse.jdt.core.prefs | 23 +++++----- .settings/org.eclipse.m2e.core.prefs | 4 ++ bin/tk/sznp/audiospectrum/PluginMain$1.class | Bin 623 -> 0 bytes bin/tk/sznp/audiospectrum/PluginMain$2.class | Bin 2193 -> 0 bytes bin/tk/sznp/audiospectrum/PluginMain.class | Bin 3230 -> 0 bytes pom.xml | 33 +++++++++++++++ .../norbipeti}/audiospectrum/PluginMain.java | 2 +- 10 files changed, 94 insertions(+), 36 deletions(-) create mode 100644 .settings/org.eclipse.m2e.core.prefs delete mode 100644 bin/tk/sznp/audiospectrum/PluginMain$1.class delete mode 100644 bin/tk/sznp/audiospectrum/PluginMain$2.class delete mode 100644 bin/tk/sznp/audiospectrum/PluginMain.class create mode 100644 pom.xml rename src/{tk/sznp => io/github/norbipeti}/audiospectrum/PluginMain.java (95%) diff --git a/.classpath b/.classpath index 672ffe6..c03bc1b 100644 --- a/.classpath +++ b/.classpath @@ -1,7 +1,20 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/.gitignore b/.gitignore index ae3c172..09e3bc9 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /bin/ +/target/ diff --git a/.project b/.project index 7832a3f..69b2bad 100644 --- a/.project +++ b/.project @@ -1,17 +1,23 @@ - - - AudioSpectrum - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.core.javanature - - + + + AudioSpectrum + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.m2e.core.maven2Builder + + + + + + org.eclipse.m2e.core.maven2Nature + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs index 416f4fb..df46a9a 100644 --- a/.settings/org.eclipse.jdt.core.prefs +++ b/.settings/org.eclipse.jdt.core.prefs @@ -1,11 +1,12 @@ -eclipse.preferences.version=1 -org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled -org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5 -org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve -org.eclipse.jdt.core.compiler.compliance=1.5 -org.eclipse.jdt.core.compiler.debug.lineNumber=generate -org.eclipse.jdt.core.compiler.debug.localVariable=generate -org.eclipse.jdt.core.compiler.debug.sourceFile=generate -org.eclipse.jdt.core.compiler.problem.assertIdentifier=error -org.eclipse.jdt.core.compiler.problem.enumIdentifier=error -org.eclipse.jdt.core.compiler.source=1.5 +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=1.8 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning +org.eclipse.jdt.core.compiler.source=1.8 diff --git a/.settings/org.eclipse.m2e.core.prefs b/.settings/org.eclipse.m2e.core.prefs new file mode 100644 index 0000000..14b697b --- /dev/null +++ b/.settings/org.eclipse.m2e.core.prefs @@ -0,0 +1,4 @@ +activeProfiles= +eclipse.preferences.version=1 +resolveWorkspaceProjects=true +version=1 diff --git a/bin/tk/sznp/audiospectrum/PluginMain$1.class b/bin/tk/sznp/audiospectrum/PluginMain$1.class deleted file mode 100644 index 0fda02775ddc0cd0b23d94f2319a7d066c0a8f20..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 623 zcmah`T}uK%6g}gbtLv5@m1dt324>LaTT%2P27*SA_&(~OQ|qkkM-Tn0pbzMwAJC7A z?wC;Y;==CSd+xbs&%N{c_5J~%jy)4GhW+r~2_Dtd;n7ff!Bh-FKbkl|O`JN5-1G9<#W3@Rt2(Ox8SPV5V*WO&JNP+d$v>@ma}-cY2#khZae zgarf3HcYHA7*$Qkw51Z)(WEc@F7La7A>Z}}-0g8+>U<8ywM~Y~!oODPWYh2?Wnmpf z69tCyqQPveVuQR^TiTIz>qY)RTuE&v^Si@iy*xsiYT$Z-RHKdv$KKG!j-DpzsiyiF zz-}oe{D#YeKm;h$@CMx#%VzZkD2mZ*B1w3PqEpH>V%3gb=<^2qX~xNDY*t~^S3s6> zn|d^wL!M4XwpZpVXT;RCbnO{du9$qq+JBi6HE#ZqNzY{rl&CRAwJkd1w6<;RQe=^! HmZaw!gbsy$ diff --git a/bin/tk/sznp/audiospectrum/PluginMain$2.class b/bin/tk/sznp/audiospectrum/PluginMain$2.class deleted file mode 100644 index 500562503c5a8ee4b4f6b97b0e5e9d66a37ce595..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2193 zcma)7U2hvj6g^{ayRkDgPSS*wkS3I*I8LdX4g<5r$w?B($V8L!EKA@~XAyGipnl1x3#(mL|rvpd@HA^dGxx{|M0xTCNes zvp6TCi=pqh!Z@BoH$#(BD5$pAjH@RpFKt?-c;4OI)SS3#IGR%-C6tP4B|_*yuZ;5t zl*m?WN8RG+!wbaFbRC9{v?qyX#^)@}aI%i2DqD#ryvT6Ihw9VpKEu`ZFb43FjEfBI zhb-ZUVvs>D3l!ZT;HZ!6S%6?Qqm&rTHDd@b%echQbrf}u%ZO7eN~*JLT6&S;Y;>@( zP%oMg%^l_#!Dzj0!weTs(zey4Sp5pet9Y%xdgO$jN;TtkBxJlny=^GMqs1|SHyOf2 zKB=39%}Hu;Pc)TE9jG8Lrs7@#)o~4zGTx$o*AGXs;;0-+Op$9HbIGu^l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M)jKs?4q*8Ljldn76PzW2t zGSV|Q<4!6#gR?F(qp<<4FC7#c->K+ zSlqODn5-L+t~?nxwT_zf}Bd4Lb4RgIRsaWB$T=7d%5XOQ6ma7 z6m~heDARMPJ0~*3YRa{EIb2y>HdlT4+VEmb>zXG~#`UYQ7}aR~Rtb9+BHi9%&wk#r zz9_OA7UE01ds)o(1wI{oIJ1x)3kyT7n8r}&7n0fufeA#-bSkDD(8a4-tmbaExTwy-y{FboS zNSs6)2;afdaPBxtZ?l(!75pxCA`~Hys|$GNS8_~oSECH8*ppB`<*9?~gr~CbBr3Y; z?ul_!h4bh!{0pikux{FM36}!P>8yhA)pWeZVa!^e2lXw*QCJK8a1;<#$liUhKc`Kl~FSB|Gzf!>;b!yQrJM)6wp{^1Ij< zoj~jHNpy7A)I7L@BlUS>P&b$5P2gBqe4ii3$*?qzQ{j@A?xL5CG33|hbFZiVf^Q5v zMWzFj7!;+5bApvfgePF$1OFI>%kuAGBp1iIJ~8^}AA$9;T{`;c#u&;)QZ*BJb@K$S zjG?$*7L79bp)j{uyiRoEB;KHKeunF`Ik<`M@fPhZ{LD?d=XV*EY}c?Cq0n#Tsc+|b z?LdgO2DSX|@v5SR`AU!`HyV4oAx<_8=b)91|gs0i#Z@C zXG20B$aQ=<2V~&ZtSCVbWE5XzARCy8V5KiyP6kY~-p$O5`5NEMg-OiDgtKwz_lA?h QxA=~>g#8Ly@f&o_f7D|Q`Tzg` diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..b5d38ff --- /dev/null +++ b/pom.xml @@ -0,0 +1,33 @@ + + 4.0.0 + com.github.norbipeti + AudioSpectrum + 0.0.1-SNAPSHOT + + src + + + maven-compiler-plugin + 3.3 + + 1.8 + 1.8 + + + + + + + spigot-repo + https://hub.spigotmc.org/nexus/content/repositories/snapshots/ + + + + + org.spigotmc + spigot-api + 1.12.2-R0.1-SNAPSHOT + + + \ No newline at end of file diff --git a/src/tk/sznp/audiospectrum/PluginMain.java b/src/io/github/norbipeti/audiospectrum/PluginMain.java similarity index 95% rename from src/tk/sznp/audiospectrum/PluginMain.java rename to src/io/github/norbipeti/audiospectrum/PluginMain.java index 1d7ee23..47dda92 100644 --- a/src/tk/sznp/audiospectrum/PluginMain.java +++ b/src/io/github/norbipeti/audiospectrum/PluginMain.java @@ -1,4 +1,4 @@ -package tk.sznp.audiospectrum; +package io.github.norbipeti.audiospectrum; import java.io.IOException; import java.net.DatagramPacket;