「Android/開発環境/AndroidStudio/mavenリポジトリ作成」の版間の差分
提供: 初心者エンジニアの簡易メモ
(→サンプル) |
|||
| 行11: | 行11: | ||
repository url: "file://${repo.absolutePath}" | repository url: "file://${repo.absolutePath}" | ||
pom.version = '1.2.2' | pom.version = '1.2.2' | ||
| − | pom.groupId = ' | + | pom.groupId = 'jp.co.hogehoge' |
| − | pom.artifactId = ' | + | pom.artifactId = 'mylibrary1' |
} | } | ||
} | } | ||
2018年8月3日 (金) 10:06時点における版
(未完成) new/new moduleからAndroidLibraryを選択肢mylibrary1を作っておく
サンプル
mylibrary1/build.gradle
def repo = new File(rootDir, "./repository")
apply plugin: 'maven'
uploadArchives {
repositories {
mavenDeployer {
repository url: "file://${repo.absolutePath}"
pom.version = '1.2.2'
pom.groupId = 'jp.co.hogehoge'
pom.artifactId = 'mylibrary1'
}
}
}
AndroidStudio左にあるGradleタブから:mylibrary1/Tasks/upload/uploadArchivesを実行
何も出来ない。何か間違ってる?・・
