Skip to content

Commit

Permalink
重命名library为core,与artifactId保持一致
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangning17 committed Aug 9, 2021
1 parent fc17951 commit 5ec6a72
Show file tree
Hide file tree
Showing 18 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ dependencies {
// implementation "com.github.xiangning17.simpleservice:core:$lib_version"
// kapt "com.github.xiangning17.simpleservice:annotation-processor:$lib_version"

implementation project(path: ':library')
implementation project(path: ':core')
kapt project(path: ':processor')
// annotationProcessor project(path: ':processor')

Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
buildscript {
ext.kotlin_version = "1.5.21"
ext.kotlin_coroutines_version = "1.5.0"
ext.lib_version = "1.0.1"
ext.lib_version = "1.0.2"

repositories {
flatDir {
Expand Down Expand Up @@ -31,7 +31,7 @@ allprojects {
}

project.group = 'com.github.xiangning17.simpleservice'
project.version = '1.0.1'
project.version = '1.0.2'
}

task clean(type: Delete) {
Expand Down
File renamed without changes.
7 changes: 7 additions & 0 deletions library/build.gradle → core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,20 @@ plugins {
id 'maven-publish'
}

task sourcesJar(type: Jar) {
classifier = 'sources'
from android.sourceSets.main.java.srcDirs
}

afterEvaluate {
publishing {
// 发布
publications {
release(MavenPublication) {
// Applies the component for the release build variant.
from components.release
// 添加源码发布
artifact sourcesJar

//指定group/artifact/version信息
groupId project.group
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ include ':app'
include ':base'
include ':processor'
include ':plugin'
include ':library'
include ':core'

0 comments on commit 5ec6a72

Please sign in to comment.