Skip to content

Commit

Permalink
support mavenCentral()
Browse files Browse the repository at this point in the history
  • Loading branch information
owenlongbo committed Jul 8, 2021
1 parent 35faa4a commit 2025e83
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
3 changes: 2 additions & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ McImage是无侵入式的全量压缩资源图片插件
### Release Success!

1.0.1版本现在支持全版本的build.gradle脚本!
最近版本已经支持mavenCentral()

### Feature

Expand Down Expand Up @@ -61,7 +62,7 @@ PS:目前我司项目正在使用此仓库进行压缩
```groovy
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.smallsoho.mobcase:McImage:1.5.1'
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Used algorithm
### Release Success!

The version 1.0.1 now support all build.gradle version!
Already support mavenCentral.

### Feature

Expand Down Expand Up @@ -60,7 +61,7 @@ The first, add the plugin in your project root build.gradle.
```groovy
buildscript {
repositories {
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.smallsoho.mobcase:McImage:1.5.1'
Expand Down
28 changes: 27 additions & 1 deletion publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'maven'
apply plugin: 'signing'

def DEBUG = false
def VERSION = '1.5.0-SNAPSHOT'
def VERSION = '1.5.1'
def GROUP = 'com.smallsoho.mobcase'
def ARTIFACT = 'McImage'

Expand Down Expand Up @@ -44,6 +44,32 @@ uploadArchives {
groupId = GROUP
artifactId = ARTIFACT
version = VERSION
project {
name = "McImage"
packaging = "aar"
description = "McImage is a Non-invasive plugin for compress all res in your project."
url = "https://github.com/smallSohoSolo/McImage"

scm {
connection "https://github.com/smallSohoSolo/McImage"
developerConnection "https://github.com/smallSohoSolo/McImage"
url "https://github.com/smallSohoSolo/McImage"
}

licenses {
license {
name "Apache-2.0 License"
url "https://github.com/smallSohoSolo/McImage/blob/master/LICENSE"
distribution "A permissive license whose main conditions require preservation of copyright and license notices. Contributors provide an express grant of patent rights. Licensed works, modifications, and larger works may be distributed under different terms and without source code."
}
}
developers {
developer {
id "smallSohoSolo"
name "smallSohosolo"
}
}
}
}
}
}
Expand Down

0 comments on commit 2025e83

Please sign in to comment.