Merge pull request #137 from SubOptimal/maven
some work to mavenize the project
This commit is contained in:
commit
71d4093c8a
4 changed files with 53 additions and 88 deletions
5
.gitignore
vendored
5
.gitignore
vendored
|
@ -2,4 +2,7 @@
|
|||
.classpath
|
||||
.project
|
||||
*.iml
|
||||
.idea/
|
||||
.idea/
|
||||
target/
|
||||
dependency-reduced-pom.xml
|
||||
|
||||
|
|
|
@ -1,75 +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/maven-v4_0_0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>the.bytecode.club</groupId>
|
||||
<artifactId>bytecode-viewer</artifactId>
|
||||
<version>3.0.0</version>
|
||||
<build>
|
||||
<sourceDirectory>src/main/java</sourceDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.3</version>
|
||||
<configuration>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
<fork>true</fork>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.6</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>2.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<transformers>
|
||||
<transformer>
|
||||
<mainClass>the.bytecode.club.bytecodeviewer.BytecodeViewer</mainClass>
|
||||
</transformer>
|
||||
</transformers>
|
||||
<filters>
|
||||
<filter>
|
||||
<artifact>*:*</artifact>
|
||||
<excludes>
|
||||
<exclude>META-INF/*</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<filter>
|
||||
<artifact>com.fifesoft:rsyntaxtextarea</artifact>
|
||||
<includes>
|
||||
<include>**</include>
|
||||
</includes>
|
||||
</filter>
|
||||
</filters>
|
||||
<minimizeJar>true</minimizeJar>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<repositories>
|
||||
<repository>
|
||||
<id>bytecode-viewer</id>
|
||||
<name>Bytecode Viewer Repository</name>
|
||||
<url>http://repo.samczsun.com/content/repositories/bytecode-viewer/</url>
|
||||
</repository>
|
||||
</repositories>
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
</project>
|
||||
|
39
pom.xml
39
pom.xml
|
@ -11,12 +11,6 @@
|
|||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
<build>
|
||||
<sourceDirectory>src/main/java</sourceDirectory>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
|
@ -34,7 +28,7 @@
|
|||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>2.3</version>
|
||||
<version>2.4.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
|
@ -55,6 +49,26 @@
|
|||
<exclude>META-INF/*</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<filter>
|
||||
<artifact>ca.benow:jd</artifact>
|
||||
<excludes>
|
||||
<exclude>org/fife/**</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<filter>
|
||||
<artifact>org.jf:baksmali</artifact>
|
||||
<excludes>
|
||||
<exclude>org/apache/commons/cli/**</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<filter>
|
||||
<artifact>dex2jar:dex2jar</artifact>
|
||||
<excludes>
|
||||
<exclude>org/objectweb/asm/xml/Processor.class</exclude>
|
||||
<exclude>org/objectweb/asm/util/TraceClassVisitor.class</exclude>
|
||||
<exclude>org/objectweb/asm/util/CheckClassAdapter.class</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<filter>
|
||||
<artifact>com.fifesoft:rsyntaxtextarea</artifact>
|
||||
<includes>
|
||||
|
@ -79,7 +93,8 @@
|
|||
</repositories>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<!-- the library source is within bytecode-viewer source, should be moved out there -->
|
||||
<!-- <dependency>
|
||||
<groupId>org.imgscalr</groupId>
|
||||
<artifactId>imgscalr-lib</artifactId>
|
||||
<version>4.2</version>
|
||||
|
@ -93,7 +108,7 @@
|
|||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<version>1.10</version>
|
||||
</dependency>
|
||||
</dependency>-->
|
||||
<dependency>
|
||||
<groupId>org.codehaus.janino</groupId>
|
||||
<artifactId>janino</artifactId>
|
||||
|
@ -124,11 +139,11 @@
|
|||
<artifactId>isoparser</artifactId>
|
||||
<version>1.1.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<!-- <dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-all</artifactId>
|
||||
<version>5.0.4</version>
|
||||
</dependency>
|
||||
</dependency>-->
|
||||
<dependency>
|
||||
<groupId>org.zeroturnaround</groupId>
|
||||
<artifactId>zt-zip</artifactId>
|
||||
|
@ -143,7 +158,7 @@
|
|||
<dependency>
|
||||
<groupId>org.benf</groupId>
|
||||
<artifactId>cfr</artifactId>
|
||||
<version>0.108</version>
|
||||
<version>0.115</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ca.benow</groupId>
|
||||
|
|
22
publish_libs_to_repository.sh
Executable file
22
publish_libs_to_repository.sh
Executable file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/sh
|
||||
|
||||
# the script will install the dependencies from ./libs/ diretory into the local Maven repository
|
||||
|
||||
install() {
|
||||
if [ ! -z "$5" ]; then
|
||||
classifier=-Dclassifier=$5
|
||||
else
|
||||
unset classifier
|
||||
fi
|
||||
mvn install:install-file -Dfile=libs/$1 -DgroupId=$2 -DartifactId=$3 -Dversion=$4 ${classifier} -Dpackaging=jar
|
||||
}
|
||||
|
||||
install procyon-decompiler-0.5.30.jar com.strobel procyon 0.5.30
|
||||
install cfr_0_115.jar org.benf cfr 0.115
|
||||
install jd-gui-1.0.0-RC4.jar ca.benow jd 1.4.0
|
||||
install byteanalysis-1.0.jar eu.bibl byteanalysis 1.0
|
||||
install apktool_2.0.1_obf-2.jar brut apktool 2.0.1
|
||||
install fernflower-2016.jar org.jetbrains.java decompiler 2015-1
|
||||
install dex_obf.jar dex2jar dex2jar 0.0.1
|
||||
install smali-2.0.3-obf-patched.jar org.jf smali 2.0.3 patched
|
||||
install baksmali-2.0.3_obf.jar org.jf baksmali 2.0.3
|
Loading…
Reference in a new issue