Skip to content

Commit

Permalink
Merge pull request #821 from aionnetwork/no-aion-api
Browse files Browse the repository at this point in the history
Remove aion_api submodule
  • Loading branch information
AionJayT authored Feb 14, 2019
2 parents 1930df5 + 89ed380 commit 67b564d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 36 deletions.
4 changes: 0 additions & 4 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
path = aion_fastvm
url = https://github.com/aionnetwork/aion_fastvm
branch = master
[submodule "aion_api"]
path = aion_api
url = https://github.com/aionnetwork/aion_api
branch = master
[submodule "aion_gui"]
path = aion_gui
url = https://github.com/aionnetwork/aion_gui
Expand Down
1 change: 0 additions & 1 deletion aion_api
Submodule aion_api deleted from 296075
52 changes: 22 additions & 30 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ allprojects {
flatDir {
dirs './lib' // does not recurse, don't make subdirectories in here
}

maven {
url "${rootDir}/lib/maven_repo"
}
}
}

Expand Down Expand Up @@ -247,9 +251,6 @@ build {
}

task prePack(type:Exec) {
dependsOn ':aion_api:cleanPack'
dependsOn ':aion_api:build'

if(findProject(":modGui") != null && gradle.useGui) {
dependsOn ':modGui:setupAionRootProject';
environment "useGui", "true"
Expand Down Expand Up @@ -312,7 +313,6 @@ task packDevDocker(type: Exec) {
}

clean {
dependsOn ':aion_api:clean'
dependsOn 'cleanJars'
delete dirPack
delete file('report')
Expand Down Expand Up @@ -363,7 +363,7 @@ task fixIdea {
// this task puts those files where IDEA expects them by running build and test

dependsOn build
configure(subprojects.findAll { it.name != 'aion_api' }) {
subprojects {
dependsOn test
}
}
Expand All @@ -383,30 +383,22 @@ def kernelVersionFromSrc() {
return version;
}

configure(subprojects.findAll { it.name != 'aion_api' }) {
// it makes the following harmless warning message, but that will not be a problem once aion_api
// is no longer a submodule:
//
// Configuration(s) specified but the install task does not exist in project :aion_api.
// Publication mavenPublication not found in project :aion_api.

apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'network.aion'

afterEvaluate {
artifactId = project.hasProperty('mavenPubArtifactId')
? mavenPubArtifactId
: project.name
version = project.hasProperty('mavenPubVersion')
? mavenPubVersion
: kernelVersionFromSrc();
}
from components.java
}
}
subprojects {
apply plugin: 'maven-publish'
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'network.aion'
artifactId = project.hasProperty('mavenPubArtifactId')
? mavenPubArtifactId
: project.name
version = project.hasProperty('mavenPubVersion')
? mavenPubVersion
: kernelVersionFromSrc();

from components.java
}
}

repositories {
maven {
Expand Down Expand Up @@ -450,5 +442,5 @@ configure(subprojects.findAll { it.name != 'aion_api' }) {
}
}

} //publishing
} //publishing
}
1 change: 0 additions & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ include 'modAionBase', 'modAion', 'modAionImpl',
'modVM',
'modApiServer',
'aion_fastvm/modFastVM',
'aion_api',
'aion_vm_api',
'modBoot'

Expand Down

0 comments on commit 67b564d

Please sign in to comment.