-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from alibaba/publish_jitpack
feat: publish jitpack config
- Loading branch information
Showing
41 changed files
with
86 additions
and
94 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
apply plugin: 'com.android.library' | ||
apply plugin: 'maven-publish' | ||
|
||
allprojects { | ||
repositories { | ||
// The order in which you list these repositories matter. | ||
google() | ||
jcenter() | ||
maven { | ||
url "https://jitpack.io" | ||
} | ||
} | ||
} | ||
|
||
buildscript{ | ||
repositories{ | ||
google() | ||
jcenter() | ||
maven { | ||
url "https://jitpack.io" | ||
} | ||
} | ||
|
||
dependencies{ | ||
classpath "com.android.tools.build:gradle:7.0.2" | ||
} | ||
} | ||
|
||
android { | ||
compileSdk 32 | ||
|
||
defaultConfig { | ||
minSdk 21 | ||
targetSdk 32 | ||
versionCode 1 | ||
versionName "0.1.0" | ||
|
||
} | ||
|
||
|
||
lintOptions { | ||
abortOnError false | ||
} | ||
|
||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility JavaVersion.VERSION_1_8 | ||
targetCompatibility JavaVersion.VERSION_1_8 | ||
} | ||
} | ||
|
||
|
||
// Because the components are created only during the afterEvaluate phase, you must | ||
// configure your publications using the afterEvaluate() lifecycle method. | ||
afterEvaluate { | ||
publishing { | ||
publications { | ||
// Creates a Maven publication called "release". | ||
release(MavenPublication) { | ||
// Applies the component for the release build variant. | ||
from components.release | ||
|
||
// You can then customize attributes of the publication as shown below. | ||
groupId = 'com.github.alibaba' | ||
artifactId = 'gaia-motion-curve' | ||
version = '0.1.0' | ||
} | ||
// Creates a Maven publication called “debug”. | ||
debug(MavenPublication) { | ||
// Applies the component for the debug build variant. | ||
from components.debug | ||
|
||
groupId = 'com.github.alibaba' | ||
artifactId = 'gaia-motion-curve' | ||
version = '0.1.0-DEV' | ||
} | ||
} | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.