GithubHelp home page GithubHelp logo

byteutil's Introduction

byteutil

有关byte数据处理的工具类

Build Status

如何使用

doc文档

依赖配置

maven配置

<dependency>
    <groupId>com.itlgl</groupId>
    <artifactId>byteutil</artifactId>
    <version>0.0.5</version>
</dependency>

gradle配置

compile 'com.itlgl:byteutil:0.0.5'

Android Studio中需要额外增加配置

android {

    packagingOptions {
        exclude 'META-INF/maven/com.itlgl/byteutil/pom.properties'
        exclude 'META-INF/maven/com.itlgl/byteutil/pom.xml'
    }
}

否则会因为META-INF文件报错:

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'.
> com.android.build.api.transform.TransformException: com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK META-INF/maven/com.ligl/byteutil/pom.properties
	File1: C:\Users\ligl01\.gradle\caches\modules-2\files-2.1\com.ligl\byteutil\0.0.1\48d08a5499328c65e87fcbd1f01fdd6ad686eca2\byteutil-0.0.1.jar
	File2: C:\Users\ligl01\.gradle\caches\modules-2\files-2.1\com.ligl\byteutil\0.0.1\48d08a5499328c65e87fcbd1f01fdd6ad686eca2\byteutil-0.0.1.jar

直接下载jar包

byteutil-0.0.5.jar

jcenter配置说明

  1. 在项目的pom.xml文件中增加build plugins的信息,用来生成源码和test-jar
  2. 将pom.xml文件中的部署位置修改为bintray的url
  3. <userdir>/.m2/文件目录下增加一个settings.xml的文件,用于设置当前用户的环境配置,书写方式可以参考项目中的settings.xml。需要注意的是,pom.xml中<distributionManagement>标签下的id值要和setting.xml中<server>下的id值相同
  4. 具体参考项目文件和bintray-examples

maven配置说明

maven配置参考http://www.cnblogs.com/softidea/p/6743108.html文章进行设置,因为需要同时上传到两个仓库中,所以修改了一下pom文件,建立了两个profile,具体参考项目配置

如何打包上传到**仓库

因为需要同时上传到两个仓库中,所以修改了一下pom文件,建立了两个profile,进行分别上传

不知道因为什么问题,在Eclipse中是不能进行打包上传操作的,使用命令窗口可以

上传到maven仓库的指令:

mvn clean deploy -P sonatype-oss-release -Darguments="gpg.passphrase=这个passphrase没有起作用"

上传到jcenter仓库的指令:

mvn clean deploy -P jcenter-bintray-release -Darguments="gpg.passphrase=这个passphrase没有起作用"

关于我

一个Android开发者

联系我

email: [email protected]

byteutil's People

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.