Java Code Examples for org.gradle.api.Project#getLogger()
The following examples show how to use
org.gradle.api.Project#getLogger() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MetricsPlugin.java From firebase-android-sdk with Apache License 2.0 | 5 votes |
private static Metrics initializeMetrics(Project project) { if (!isCollectionEnabled()) { project.getLogger().lifecycle("Metrics collection is disabled. Logging to stdout..."); return Metrics.toLog(project.getLogger(), LogLevel.LIFECYCLE); } project.getLogger().lifecycle("Metrics collection is enabled."); return new StackdriverMetrics(project.getGradle(), project.getLogger()); }
Example 2
Source File: BaseComponentModelPlugin.java From javaide with GNU General Public License v3.0 | 5 votes |
@Model(ANDROID_BUILDER) public AndroidBuilder createAndroidBuilder(Project project, ExtraModelInfo extraModelInfo) { String creator = "Android Gradle"; ILogger logger = new LoggerWrapper(project.getLogger()); return new AndroidBuilder(project.equals(project.getRootProject()) ? project.getName() : project.getPath(), creator, new GradleProcessExecutor(project), new GradleJavaProcessExecutor(project), extraModelInfo, logger, project.getLogger().isEnabled(LogLevel.INFO)); }
Example 3
Source File: MinikubePlugin.java From minikube-build-tools-for-java with Apache License 2.0 | 5 votes |
@Override public void apply(Project project) { this.project = project; CommandExecutorFactory commandExecutorFactory = new CommandExecutorFactory(project.getLogger()); createMinikubeExtension(commandExecutorFactory); configureMinikubeTaskAdditionCallback(commandExecutorFactory); createMinikubeStartTask(); createMinikubeStopTask(); createMinikubeDeleteTask(); }
Example 4
Source File: GitVersionPlugin.java From gradle-plugins with MIT License | 5 votes |
@Override public void apply(Project project) { this.project = project; this.logger = project.getLogger(); project.setVersion(resolveVersion()); project.allprojects(p -> p.setVersion(project.getVersion())); }
Example 5
Source File: GitVersionPlugin.java From gradle-plugins with MIT License | 5 votes |
@Override public void apply(Project project) { this.project = project; this.logger = project.getLogger(); project.setVersion(resolveVersion()); project.allprojects(p -> p.setVersion(project.getVersion())); }
Example 6
Source File: HensonManager.java From dart with Apache License 2.0 | 5 votes |
public HensonManager(Project project) { this.project = project; this.logger = project.getLogger(); this.taskManager = new TaskManager(project, logger); this.dependencyManager = new DependencyManager(project, logger); this.hensonExtension = (HensonPluginExtension) project.getExtensions().getByName("henson"); }
Example 7
Source File: AndroidExtension.java From javafxmobile-plugin with BSD 3-Clause "New" or "Revised" License | 4 votes |
public AndroidExtension(Project project, ToolingModelBuilderRegistry registry) { this.project = project; this.extraModelInfo = new ExtraModelInfo(new ProjectOptions(project), project.getLogger()); this.signingConfig = project.getExtensions().create("signingConfig", SigningConfig.class, "signing"); this.packagingOptions = project.getExtensions().create("packagingOptions", PackagingOptions.class); this.dexOptions = project.getExtensions().create("dexOptions", DexOptions.class, extraModelInfo); try { this.buildCache = FileCache.getInstanceWithMultiProcessLocking(new File(AndroidLocation.getFolder(), "build-cache")); } catch (AndroidLocation.AndroidLocationException e) { throw new RuntimeException(e); } LoggerWrapper loggerWrapper = new LoggerWrapper(project.getLogger()); this.sdkHandler = new SdkHandler(project, loggerWrapper); this.androidBuilder = new AndroidBuilder( project == project.getRootProject() ? project.getName() : project.getPath(), "JavaFX Mobile", new GradleProcessExecutor(project), new GradleJavaProcessExecutor(project), extraModelInfo, loggerWrapper, false); this.androidTaskRegistry = new AndroidTaskRegistry(); this.taskFactory = new TaskContainerAdaptor(project.getTasks()); installDirectory = new File(project.getBuildDir(), "javafxports/android"); project.getLogger().info("Android install directory: " + installDirectory); temporaryDirectory = new File(project.getBuildDir(), "javafxports/tmp/android"); project.getLogger().info("Android temporary output directory: " + temporaryDirectory); resourcesDirectory = new File(temporaryDirectory, "resources"); resourcesDirectory.mkdirs(); project.getLogger().info("Resources directory: " + resourcesDirectory); multidexOutputDirectory = new File(temporaryDirectory, "multi-dex"); multidexOutputDirectory.mkdirs(); project.getLogger().info("Multi-dex output directory: " + multidexOutputDirectory); dexOutputDirectory = new File(temporaryDirectory, "dex"); dexOutputDirectory.mkdirs(); project.getLogger().info("Dex output directory: " + dexOutputDirectory); }
Example 8
Source File: Log.java From AndServer with Apache License 2.0 | 4 votes |
public static void inject(Project project) { sLogger = project.getLogger(); }