All Projects → adisonhuang → Buildjar

adisonhuang / Buildjar

Licence: apache-2.0
通用的打包jar gradle插件

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Buildjar

Java Markdown Generator
Java library to generate markdown
Stars: ✭ 159 (+8.16%)
Mutual labels:  gradle, jar
Gradle Util Plugins
Fix for windows gradle long classpath issue. Fixes JavaExec tasks that error out with message "CreateProcess error=206, The filename or extension is too long"
Stars: ✭ 87 (-40.82%)
Mutual labels:  gradle, jar
Bintray Publish
Super easy way to publish your Android and Java artifacts to bintray.
Stars: ✭ 97 (-34.01%)
Mutual labels:  gradle, jar
Gradle Nexus Staging Plugin
Automatize releasing Gradle projects to Maven Central.
Stars: ✭ 132 (-10.2%)
Mutual labels:  jar
Spring Backend Boilerplate
The modularized backend boilerplate based on Spring Boot Framework, easy to get started and add your business part.
Stars: ✭ 134 (-8.84%)
Mutual labels:  gradle
Tyrian
Full-featured TypeScript on JVM
Stars: ✭ 138 (-6.12%)
Mutual labels:  gradle
Image Comparison
Published on Maven Central and jCenter Java Library that compares 2 images with the same sizes and shows the differences visually by drawing rectangles. Some parts of the image can be excluded from the comparison. Can be used for automation qa tests.
Stars: ✭ 145 (-1.36%)
Mutual labels:  gradle
Phoenix For Vk
Yet another VK client for Android
Stars: ✭ 131 (-10.88%)
Mutual labels:  gradle
Java Rpg Maker Mv Decrypter
You can decrypt whole RPG-Maker MV Directories with this Program, it also has a GUI.
Stars: ✭ 142 (-3.4%)
Mutual labels:  jar
Android Development Aircraft Carrier
打造安卓开发航空母舰,Android Studio 使用集锦
Stars: ✭ 138 (-6.12%)
Mutual labels:  gradle
Jcoder
Java Dynamic code or JAR , publish you Api or Schedule in flying
Stars: ✭ 137 (-6.8%)
Mutual labels:  jar
Keeper
A Gradle plugin that infers Proguard/R8 keep rules for androidTest sources.
Stars: ✭ 135 (-8.16%)
Mutual labels:  gradle
Java Ddd Skeleton
♨️ DDD in Java skeleton & examples. Course:
Stars: ✭ 140 (-4.76%)
Mutual labels:  gradle
Publiccms
现代化java cms,由天津黑核科技有限公司开发,轻松支撑千万数据、千万PV;支持静态化,服务器端包含; 目前已经拥有全球0.0002%的用户,语言支持中、繁、日、英;是一个已走向海外的成熟CMS产品
Stars: ✭ 1,750 (+1090.48%)
Mutual labels:  gradle
Androidutillib
🔥 旨在打造一款属于Android开发的强大工具库:内置各种开发必备工具类、Dialog封装、组件重写等
Stars: ✭ 143 (-2.72%)
Mutual labels:  gradle
Gson Plugin
辅助 Gson 库的 gradle 插件,防止 Json 数据解析类型异常。
Stars: ✭ 133 (-9.52%)
Mutual labels:  gradle
Segmentedcontrol
Android SegmentedControl + multi row support
Stars: ✭ 143 (-2.72%)
Mutual labels:  gradle
Kotlinx Benchmark
Kotlin multiplatform benchmarking toolkit
Stars: ✭ 137 (-6.8%)
Mutual labels:  gradle
Nice Knowledge System
📚不积跬步无以至千里,每天进步一点点,Passion,Self-regulation,Love and Share
Stars: ✭ 137 (-6.8%)
Mutual labels:  gradle
Javafbp
Java Implementation of Flow-Based Programming (FBP)
Stars: ✭ 138 (-6.12%)
Mutual labels:  gradle

buildJar

通用的打包jar gradle插件

支持特性

  1. 按需打包jar:
    • 全项目打包jar
    • 指定输出Jar包的包名路径列表
    • 过滤指定包名路径列表
    • 过滤指定class
    • 过滤指定jar
  2. 支持混淆打包jar
  3. 支持applymapping

使用说明

  1. 引入依赖

    dependencies {
            classpath 'com.android.tools.build:gradle:3.0.1'
            classpath 'com.adison.gradleplugin:jar:1.1.0'
        }
    

  2. 应用插件

    apply plugin: 'jar-gradle-plugin'
    BuildJar{
        //输出目录
        outputFileDir= project.buildDir.path+"/jar"
        //输出原始jar包名
        outputFileName="test.jar"
        //输出混淆jar包名
        outputProguardFileName="test_proguard.jar"
        //混淆配置
        proguardConfigFile="proguard-rules.pro"
        //是否需要默认的混淆配置proguard-android.txt
        needDefaultProguard=false
        applyMappingFile="originMapping/mapping.txt"
         //不需要输出jar的jar包列表,如['baidu.jar','baidu1.jar'...]
        excludeJar=[]
        //需要输出jar的包名列表,当此参数为空时,则默认全项目输出,支持多包,如 includePackage=['com/adison/testjarplugin/include','com/adison/testjarplugin/include1'...]
        includePackage=['com/adison/testjarplugin/include']
        //不需要输出jar的类名列表,如['baidu.calss','baidu1.class'...]
        excludeClass=['com/adison/testjarplugin/TestExcude.class']
        //不需要输出jar的包名列表,如 excludePackage=['com/adison/testjarplugin/exclude','com/adison/testjarplugin/exclude1'...]
        excludePackage=['com/adison/testjarplugin/exclude']
    }
    

    可参见使用demo

    版本记录

    • 1.1.0

      fix bug

    • 1.0.3

      使用kotlin重写

      兼容 Android studio3.0

    • 1.0.2

      功能完善

    LICENSE

    Apache License 2.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].