diff --git a/ChangeLog.md b/ChangeLog.md
--- a/ChangeLog.md
+++ b/ChangeLog.md
@@ -1,5 +1,9 @@
 # Revision history for `cabal-plan`
 
+## 0.7.2.3
+
+* Fix issue in previous release (license generation didn't work at all)
+
 ## 0.7.2.2
 
 * Use Cabal-syntax-3.8.1.0
diff --git a/cabal-plan.cabal b/cabal-plan.cabal
--- a/cabal-plan.cabal
+++ b/cabal-plan.cabal
@@ -1,6 +1,6 @@
 cabal-version:       2.2
 name:                cabal-plan
-version:             0.7.2.2
+version:             0.7.2.3
 
 synopsis:            Library and utility for processing cabal's plan.json file
 description: {
diff --git a/src-exe/LicenseReport.hs b/src-exe/LicenseReport.hs
--- a/src-exe/LicenseReport.hs
+++ b/src-exe/LicenseReport.hs
@@ -9,7 +9,7 @@
     ( generateLicenseReport
     ) where
 
-#if defined(MIN_VERSION_Cabal)
+#if defined(MIN_VERSION_Cabal_syntax)
 import           Cabal.Plan
 import qualified Codec.Archive.Tar                      as Tar
 import qualified Codec.Archive.Tar.Entry                as Tar
@@ -40,9 +40,7 @@
 
 import Cabal.Config (readConfig, Config (..), cfgRepoIndex, hackageHaskellOrg)
 
-#if MIN_VERSION_Cabal(3,2,0)
 import          Distribution.Utils.ShortText            (fromShortText)
-#endif
 
 -- | Read tarball lazily (and possibly decompress)
 readTarEntries :: FilePath -> IO [Tar.Entry]
@@ -168,9 +166,7 @@
                      parseGenericPackageDescriptionMaybe x
 
               let desc = escapeDesc
-#if MIN_VERSION_Cabal(3,2,0)
                        $ fromShortText
-#endif
                        $ synopsis $ packageDescription gpd
                   lic  = license  $ packageDescription gpd
                   -- cr   = copyright $ packageDescription gpd
