mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
build: reorganize and reconfigure modules to resolve dependency resolution errors
Gradle, for some reason, does not the path of modules to identify them uniquely. Instead, the 'build id' is used to do so, which consists of the maven group and artifact ID. So, even if two modules are located in separate directories, but have the name group and artifact ID, including both of them in other modules may result in dependency resolution errors.
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/build
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* This file is part of AndroidIDE.
|
||||
*
|
||||
* AndroidIDE is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* AndroidIDE is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
plugins {
|
||||
//noinspection JavaPluginLanguageLevel
|
||||
id("java-library")
|
||||
id("com.vanniktech.maven.publish.base")
|
||||
}
|
||||
|
||||
groupConfig {
|
||||
groupIdSuffix.set("tooling")
|
||||
}
|
||||
|
||||
description = "Configuration options for the Tooling API and Gradle Plugin."
|
||||
+53
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* This file is part of AndroidIDE.
|
||||
*
|
||||
* AndroidIDE is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* AndroidIDE is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.itsaky.androidide.tooling.api;
|
||||
|
||||
/**
|
||||
* Configuration options for LogSender. Properties defined in this class whose name start with an
|
||||
* <code>_</code> are internal.
|
||||
*
|
||||
* @author Akash Yadav
|
||||
*/
|
||||
public final class LogSenderConfig {
|
||||
|
||||
/**
|
||||
* Property to enable or disable <code>LogSender</code> in the project. Value can be
|
||||
* <code>true</code> or <code>false</code>.
|
||||
*/
|
||||
public static final String PROPERTY_LOGSENDER_ENABLED = "androidide.logsender.isEnabled";
|
||||
|
||||
/**
|
||||
* Property that is set in tests to indicate that the plugin is being applied in a test
|
||||
* environment.
|
||||
* <p>
|
||||
* <b>This is an internal property and should not be manually set by users.</b>
|
||||
*/
|
||||
public static final String _PROPERTY_IS_TEST_ENV = "androidide.plugins.internal.isTestEnv";
|
||||
|
||||
/**
|
||||
* Property that is set in tests to provide path to the local maven repository. If this property
|
||||
* is empty, `null` or not set at all, the default maven local repository is used.
|
||||
*
|
||||
* <b>This is an internal property and should not be manually set by users.</b>
|
||||
*/
|
||||
public static final String _PROPERTY_MAVEN_LOCAL_REPOSITORY = "androidide.plugins.internal.mavenLocalRepositories";
|
||||
|
||||
private LogSenderConfig() {
|
||||
throw new UnsupportedOperationException("This class cannot be instantiated.");
|
||||
}
|
||||
}
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
/*
|
||||
* This file is part of AndroidIDE.
|
||||
*
|
||||
* AndroidIDE is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* AndroidIDE is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with AndroidIDE. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
package com.itsaky.androidide.tooling.api;
|
||||
|
||||
/**
|
||||
* Configuration options for the Tooling API.
|
||||
*
|
||||
* @author Akash Yadav
|
||||
*/
|
||||
public final class ToolingConfig {
|
||||
|
||||
private ToolingConfig() {
|
||||
throw new UnsupportedOperationException("This class cannot be instantiated.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user