-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrapped publishing configuration in afterEvaluate to ensure component…
…s are loaded.
- Loading branch information
Showing
1 changed file
with
35 additions
and
34 deletions.
There are no files selected for viewing
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 |
---|---|---|
|
@@ -253,45 +253,46 @@ tasks.register<Zip>("createBundle") { | |
} | ||
|
||
/* ----------------- Maven Publish (Meta data) ----------------- */ | ||
afterEvaluate { | ||
publishing { | ||
publications { | ||
create<MavenPublication>("java") { | ||
from(components["java"]) | ||
groupId = "dev.randos" | ||
artifactId = "resourcemanager" | ||
version = "1.0.0" | ||
|
||
val bundle = file(layout.buildDirectory.dir("zip/bundle.zip")) | ||
artifact(bundle) | ||
|
||
pom { | ||
name = "${groupId}:${artifactId}" | ||
description = | ||
"An Android library that simplifies accessing Android resources (strings, colors, drawables, etc.) in both Android and non-Android components (e.g. ViewModel) using generated code." | ||
url = "https://github.com/vsnappy1/ResourceManager" | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("java") { | ||
from(components["java"]) | ||
groupId = "dev.randos" | ||
artifactId = "resourcemanager" | ||
version = "1.0.0" | ||
|
||
val bundle = file(layout.buildDirectory.dir("zip/bundle.zip")) | ||
artifact(bundle) | ||
|
||
pom { | ||
name = "${groupId}:${artifactId}" | ||
description = | ||
"An Android library that simplifies accessing Android resources (strings, colors, drawables, etc.) in both Android and non-Android components (e.g. ViewModel) using generated code." | ||
url = "https://github.com/vsnappy1/ResourceManager" | ||
|
||
licenses { | ||
license { | ||
name = "The Apache License, Version 2.0" | ||
url = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
licenses { | ||
license { | ||
name = "The Apache License, Version 2.0" | ||
url = "http://www.apache.org/licenses/LICENSE-2.0.txt" | ||
} | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
name = "Vishal Kumar" | ||
email = "[email protected]" | ||
organization = "Randos" | ||
organizationUrl = "https://www.randos.dev" | ||
developers { | ||
developer { | ||
name = "Vishal Kumar" | ||
email = "[email protected]" | ||
organization = "Randos" | ||
organizationUrl = "https://www.randos.dev" | ||
} | ||
} | ||
} | ||
|
||
scm { | ||
connection = "scm:git:git://github.com/vsnappy1/ResourceManager.git" | ||
developerConnection = | ||
"scm:git:ssh://github.com/vsnappy1/ResourceManager.git" | ||
url = "https://github.com/vsnappy1/ResourceManager" | ||
scm { | ||
connection = "scm:git:git://github.com/vsnappy1/ResourceManager.git" | ||
developerConnection = | ||
"scm:git:ssh://github.com/vsnappy1/ResourceManager.git" | ||
url = "https://github.com/vsnappy1/ResourceManager" | ||
} | ||
} | ||
} | ||
} | ||
|