Skip to content

Commit

Permalink
Remove unnecessary lines
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <[email protected]>
  • Loading branch information
cwperks committed Oct 10, 2024
1 parent dacf648 commit 221104d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 47 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,6 @@ tasks.register('checkCompatibility', CheckCompatibilityTask) {
def generateVersionProperties = tasks.register("generateVersionProperties", WriteProperties) {
destinationFile = file("${buildDir}/version.properties")
comment = 'Generated version properties'
// properties(props)

def libsTomlFile = file("gradle/libs.versions.toml")
def propertiesFile = file("${buildDir}/versions.properties")
Expand Down
23 changes: 0 additions & 23 deletions buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -60,29 +60,6 @@ if (project == rootProject) {
Properties props = VersionPropertiesLoader.loadBuildSrcVersion(project.file('../gradle/libs.versions.toml'))
version = props.getProperty("opensearch")

//def generateVersionProperties = tasks.register("generateVersionProperties", WriteProperties) {
// destinationFile = file("buildSrc/${buildDir}/version.properties")
// comment = 'Generated version properties'
// // properties(props)
//
// def libsTomlFile = file("gradle/libs.versions.toml")
// def propertiesFile = file("buildSrc/${buildDir}/versions.properties")
//
// doLast {
// def properties = org.opensearch.gradle.VersionPropertiesGenerator.generateVersionProperties(libsTomlFile)
//
// propertiesFile.withWriter('UTF-8') { writer ->
// properties.store(writer, "Generated by Gradle")
// }
//
// println "Generated versions.properties at: ${propertiesFile.absolutePath}"
// }
//}
//
//processResources {
// from(generateVersionProperties)
//}

/*****************************************************************************
* Java version *
*****************************************************************************/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,6 @@
* compatible open source license.
*/

/*
* Licensed to Elasticsearch under one or more contributor
* license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright
* ownership. Elasticsearch licenses this file to you under
* the Apache License, Version 2.0 (the "License"); you may
* not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
/*
* Modifications Copyright OpenSearch Contributors. See
* GitHub history for details.
*/

package org.opensearch.gradle;

import java.io.File;
Expand Down

0 comments on commit 221104d

Please sign in to comment.