Skip to content

Commit

Permalink
compute license year dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomarquezp committed Jan 19, 2024
1 parent 060aa3a commit ad29609
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions synthtool/languages/java.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,13 @@
from synthtool.log import logger
from pathlib import Path
from typing import Any, Optional, Dict, Iterable, List
from datetime import date

JAR_DOWNLOAD_URL = "https://github.com/google/google-java-format/releases/download/google-java-format-{version}/google-java-format-{version}-all-deps.jar"
DEFAULT_FORMAT_VERSION = "1.7"
GOOD_LICENSE = """/*
* Copyright 2024 Google LLC
CURRENT_YEAR = date.today().year
GOOD_LICENSE = f"""/*
* Copyright {CURRENT_YEAR} Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down

0 comments on commit ad29609

Please sign in to comment.